Debian Codegraph @

clang/test/Misc/emit-html.c

raw
1 // RUN: %clang_cc1 %s -emit-html -o -
2
3 #line 42 "foo.c"
4
5 // PR3635
6 #define F(fmt, ...) fmt, ## __VA_ARGS__
7 int main(int argc, char **argv) {
8 return F(argc, 1);
9 }
10
11 // PR3798
12 #define FOR_ALL_FILES(f,i) i
13
14 #if 0
15 FOR_ALL_FILES(f) { }
16 #endif
17
18 // -emit-html filters out # directives, but not _Pragma (or MS __pragma)
19 // Diagnostic push/pop is stateful, so re-lexing a file can cause problems
20 // if these pragmas are interpreted normally.
21 _Pragma("clang diagnostic push")
22 _Pragma("clang diagnostic ignored \"-Wformat-extra-args\"")
23 _Pragma("clang diagnostic pop")
24