blob: ec07a60a60668361bfcfde00fd7f177433a17208 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 %s -emit-html -o -
Chris Lattner05db4272009-02-13 19:33:24 +00002
3// rdar://6562329
4#line 42 "foo.c"
5
Chris Lattnerf0b26b12009-02-24 05:29:33 +00006// PR3635
7#define F(fmt, ...) fmt, ## __VA_ARGS__
8int main(int argc, char **argv) {
9 return F(argc, 1);
10}
11
Chris Lattner7c175fb2009-03-13 21:44:46 +000012// PR3798
13#define FOR_ALL_FILES(f,i) i
14
15#if 0
16 FOR_ALL_FILES(f) { }
17#endif
18
Jordan Rose6fe6a492012-06-08 18:06:21 +000019// <rdar://problem/11625964>
20// -emit-html filters out # directives, but not _Pragma (or MS __pragma)
21// Diagnostic push/pop is stateful, so re-lexing a file can cause problems
22// if these pragmas are interpreted normally.
23_Pragma("clang diagnostic push")
24_Pragma("clang diagnostic ignored \"-Wformat-extra-args\"")
25_Pragma("clang diagnostic pop")
26