| 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 | float f(float); |
| 17 | double f(double); // expected-error{{overloadable}} |
| 18 | // expected-note@-2{{previous unmarked overload}} |
| 19 | void h() { g(0); } |
| 20 | |
| 21 | #endif |
| 22 | |