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 13 #else 14 15 double f(double); // expected-error{{overloadable}} 16 // expected-note@11{{previous overload}} 17 18 #endif 19