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