xref: /llvm-project/clang/test/Driver/std.c (revision c9ab1d890586bd8a6a194e6a37968538b80f81bd)
1 // RUN: %clang -w -ansi %s -E -o - | FileCheck -check-prefix=ANSI %s
2 // ANSI: []
3 // RUN: %clang -w -ansi %s -fno-trigraphs -E -o - | FileCheck -check-prefix=ANSI-OVERRIDE %s
4 // ANSI-OVERRIDE: ??(??)
5 // RUN: %clang -w -std=gnu99 -trigraphs %s -E -o - | FileCheck -check-prefix=EXPLICIT %s
6 // EXPLICIT: []
7 // RUN: %clang -w -std=gnu99 -ftrigraphs %s -E -o - | FileCheck -check-prefix=FEXPLICIT %s
8 // FEXPLICIT: []
9 // RUN: %clang -w -ftrigraphs -fno-trigraphs %s -E -o - | FileCheck -check-prefix=ONOFF %s
10 // ONOFF: ??(??)
11 // RUN: %clang -w -fno-trigraphs -trigraphs %s -E -o - | FileCheck -check-prefix=OFFFON %s
12 // OFFFON: []
13 
14 ??(??)
15