summaryrefslogtreecommitdiffstats
path: root/test/Sema/i-c-e.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/i-c-e.c')
-rw-r--r--test/Sema/i-c-e.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Sema/i-c-e.c b/test/Sema/i-c-e.c
index eb77bbe..4c2962d 100644
--- a/test/Sema/i-c-e.c
+++ b/test/Sema/i-c-e.c
@@ -1,4 +1,4 @@
-// RUN: %clang %s -fsyntax-only -Xclang -verify -pedantic -fpascal-strings
+// RUN: %clang %s -ffreestanding -fsyntax-only -Xclang -verify -pedantic -fpascal-strings
#include <stdint.h>
#include <limits.h>
@@ -9,6 +9,7 @@ int a() {int p; *(1 ? &p : (void*)(0 && (a(),1))) = 10;} // expected-error {{inc
int expr;
char w[__builtin_constant_p(expr) ? expr : 1];
+char v[sizeof(__builtin_constant_p(0)) == sizeof(int) ? 1 : -1];
// __builtin_constant_p as the condition of ?: allows arbitrary foldable
// constants to be transmogrified into i-c-e's.
OpenPOWER on IntegriCloud