blob: 2f868ac6624e37483cc5dddd8869786580e5f884 [file] [log] [blame]
Douglas Gregor68a2eb02009-04-15 21:30:51 +00001// Test this without pch.
Argyrios Kyrtzidiseea742b2010-10-18 19:20:05 +00002// RUN: %clang_cc1 -include %s -fsyntax-only -verify %s
Douglas Gregor68a2eb02009-04-15 21:30:51 +00003
4// Test with pch.
Argyrios Kyrtzidiseea742b2010-10-18 19:20:05 +00005// RUN: %clang_cc1 -emit-pch -o %t %s
Daniel Dunbara5728872009-12-15 20:14:24 +00006// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s
Argyrios Kyrtzidiseea742b2010-10-18 19:20:05 +00007
8#ifndef HEADER
9#define HEADER
10
11int f(int) __attribute__((visibility("default"), overloadable)); // expected-note{{previous overload}}
12
13#else
14
Douglas Gregor68a2eb02009-04-15 21:30:51 +000015double f(double); // expected-error{{overloadable}}
Argyrios Kyrtzidiseea742b2010-10-18 19:20:05 +000016
17#endif