Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Misc / emit-html.c
blob55b20c84d7ed05d03736495a0b8b67819fdec4a8
1 // RUN: %clang_cc1 %s -emit-html -o -
3 #line 42 "foo.c"
5 // PR3635
6 #define F(fmt, ...) fmt, ## __VA_ARGS__
7 int main(int argc, char **argv) {
8 return F(argc, 1);
11 // PR3798
12 #define FOR_ALL_FILES(f,i) i
14 #if 0
15 FOR_ALL_FILES(f) { }
16 #endif
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")