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