Mercurial > hg > CbC > CbC_llvm
annotate clang/test/PCH/format-strings.c @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 1d019706d866 |
children |
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 | |
236 | 14 void foo(void) { |
150 | 15 LOG; |
16 } | |
17 | |
18 #endif |