xref: /minix3/external/bsd/llvm/dist/clang/test/FixIt/fixit-c90.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc /* RUN: cp %s %t
2*f4a2713aSLionel Sambuc    RUN: %clang_cc1 -std=c90 -pedantic -fixit %t
3*f4a2713aSLionel Sambuc    RUN: %clang_cc1 -pedantic -x c -std=c90 -Werror %t
4*f4a2713aSLionel Sambuc  */
5*f4a2713aSLionel Sambuc /*
6*f4a2713aSLionel Sambuc    This test passes because clang merely warns for this syntax error even with
7*f4a2713aSLionel Sambuc    -pedantic -Werror -std=c90.
8*f4a2713aSLionel Sambuc  */
9*f4a2713aSLionel Sambuc 
10*f4a2713aSLionel Sambuc /* This is a test of the various code modification hints that are
11*f4a2713aSLionel Sambuc    provided as part of warning or extension diagnostics. All of the
12*f4a2713aSLionel Sambuc    warnings will be fixed by -fixit, and the resulting file should
13*f4a2713aSLionel Sambuc    compile cleanly with -Werror -pedantic. */
14*f4a2713aSLionel Sambuc 
15*f4a2713aSLionel Sambuc enum e0 {
16*f4a2713aSLionel Sambuc   e1,
17*f4a2713aSLionel Sambuc };
18