diff options
| author | Chris Lattner <sabre@nondot.org> | 2011-06-14 06:38:10 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2011-06-14 06:38:10 +0000 |
| commit | f35de48c905803359f1a5454d6024806db8ca989 (patch) | |
| tree | b60912ce4a2f88448f1c27859ea3757c97e84d4f /clang/test/Sema/i-c-e.c | |
| parent | b5f19d9f6f842473627561a03ca76aa4be765ccc (diff) | |
| download | bcm5719-llvm-f35de48c905803359f1a5454d6024806db8ca989.tar.gz bcm5719-llvm-f35de48c905803359f1a5454d6024806db8ca989.zip | |
when compiling in a GNU mode (e.g. gnu99) treat VLAs with a size that can be folded to a constant
as constant size arrays. This has slightly different semantics in some insane cases, but allows
us to accept some constructs that GCC does. Continue to be pedantic in -std=c99 and other
modes. This addressed rdar://8733881 - error "variable-sized object may not be initialized"; g++ accepts same code
llvm-svn: 132983
Diffstat (limited to 'clang/test/Sema/i-c-e.c')
| -rw-r--r-- | clang/test/Sema/i-c-e.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/i-c-e.c b/clang/test/Sema/i-c-e.c index 4d7007cd077..1aac51e204f 100644 --- a/clang/test/Sema/i-c-e.c +++ b/clang/test/Sema/i-c-e.c @@ -1,4 +1,4 @@ -// RUN: %clang %s -ffreestanding -fsyntax-only -Xclang -verify -pedantic -fpascal-strings +// RUN: %clang %s -ffreestanding -fsyntax-only -Xclang -verify -pedantic -fpascal-strings -std=c99 #include <stdint.h> #include <limits.h> |

