brintos

brintos / llvm-project-archived public Read only

0
0
Text · 562 B · 55b20c8 Raw
25 lines · c
1// RUN: %clang_cc1 %s -emit-html -o -2 3#line 42 "foo.c"4 5// PR36356#define F(fmt, ...) fmt, ## __VA_ARGS__7int main(int argc, char **argv) {8  return F(argc, 1);9}10 11// PR379812#define FOR_ALL_FILES(f,i) i13 14#if 015  FOR_ALL_FILES(f) { }16#endif17 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 problems20// 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 25