Switch C compilations to C11 by default.
This is long-since overdue, and matches GCC 5.0. This should also be backwards-compatible, because we already supported all of C11 as an extension in C99 mode. llvm-svn: 220244
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s
|
||||
// RUN: %clang_cc1 -fsyntax-only -Wgnu -Wc11-extensions -verify %s
|
||||
// RUN: %clang_cc1 -std=gnu99 -fsyntax-only -pedantic -verify %s
|
||||
// RUN: %clang_cc1 -std=gnu99 -fsyntax-only -Wgnu -Wc11-extensions -verify %s
|
||||
// REQUIRES: LP64
|
||||
|
||||
extern int foof() = 1; // expected-error{{illegal initializer (only variables can be initialized)}}
|
||||
|
||||
Reference in New Issue
Block a user