1*67e74705SXin Li // Test this without pch. 2*67e74705SXin Li // RUN: %clang_cc1 -include %s -fsyntax-only -verify %s 3*67e74705SXin Li 4*67e74705SXin Li // Test with pch. 5*67e74705SXin Li // RUN: %clang_cc1 -emit-pch -o %t %s 6*67e74705SXin Li // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s 7*67e74705SXin Li 8*67e74705SXin Li #ifndef HEADER 9*67e74705SXin Li #define HEADER 10*67e74705SXin Li 11*67e74705SXin Li int f(int) __attribute__((visibility("default"), overloadable)); 12*67e74705SXin Li int g(int) __attribute__((abi_tag("foo", "bar", "baz"), no_sanitize("address", "memory"))); 13*67e74705SXin Li 14*67e74705SXin Li #else 15*67e74705SXin Li 16*67e74705SXin Li double f(double); // expected-error{{overloadable}} 17*67e74705SXin Li // expected-note@11{{previous overload}} h()18*67e74705SXin Livoid h() { g(0); } 19*67e74705SXin Li 20*67e74705SXin Li #endif 21