blob: 5e9d5a1ff9323c457000f741f882af1bee55b348 [file] [log] [blame]
Nick Lewyckyba5f6ec2010-04-24 01:30:46 +00001/* RUN: cp %s %t
2 RUN: %clang_cc1 -std=c90 -pedantic -fixit %t
3 RUN: %clang_cc1 -pedantic -x c -std=c90 -Werror %t
4 */
Dmitri Gribenko3d115cf2013-01-25 22:20:24 +00005/*
Nick Lewyckyba5f6ec2010-04-24 01:30:46 +00006 This test passes because clang merely warns for this syntax error even with
7 -pedantic -Werror -std=c90.
Douglas Gregor9b3064b2009-04-01 22:41:11 +00008 */
Douglas Gregorfe057ac2009-04-02 03:20:30 +00009
Douglas Gregor9b3064b2009-04-01 22:41:11 +000010/* This is a test of the various code modification hints that are
Douglas Gregorfe057ac2009-04-02 03:20:30 +000011 provided as part of warning or extension diagnostics. All of the
12 warnings will be fixed by -fixit, and the resulting file should
13 compile cleanly with -Werror -pedantic. */
Douglas Gregor9b3064b2009-04-01 22:41:11 +000014
15enum e0 {
16 e1,
17};