Mercurial > hg > CbC > CbC_llvm
annotate clang/test/PCH/format-strings.c @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | c4bab56944e8 |
rev | line source |
---|---|
150 | 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 |