]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/PCH/format-strings.c
Vendor import of clang RELEASE_350/final tag r216957 (effectively, 3.5.0 release):
[FreeBSD/FreeBSD.git] / test / PCH / format-strings.c
1 // RUN: %clang_cc1 -D FOOBAR="\"\"" %s -emit-pch -o %t.pch
2 // RUN: %clang_cc1 -D FOOBAR="\"\"" %s -include-pch %t.pch
3
4 // rdar://11418366
5
6 #ifndef HEADER
7 #define HEADER
8
9 extern int printf(const char *restrict, ...);
10 #define LOG printf(FOOBAR "%f", __LINE__)
11
12 #else
13
14 void foo() {
15   LOG;
16 }
17
18 #endif