summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/static-init.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-02-17 19:26:59 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-02-17 19:26:59 +0000
commitd95638df44c201e85aebd16805fa03837e110fe2 (patch)
tree2f36ddfce133afbf517137940fa981c556bb46e0 /clang/test/Sema/static-init.c
parentfd4e5dd1878a4fcd6c99008b5f19907e8305dd2c (diff)
downloadbcm5719-llvm-d95638df44c201e85aebd16805fa03837e110fe2.tar.gz
bcm5719-llvm-d95638df44c201e85aebd16805fa03837e110fe2.zip
Fix test to not force triple, and also to not need stdint.h.
llvm-svn: 96499
Diffstat (limited to 'clang/test/Sema/static-init.c')
-rw-r--r--clang/test/Sema/static-init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/static-init.c b/clang/test/Sema/static-init.c
index 8011943755c..b4de92713b8 100644
--- a/clang/test/Sema/static-init.c
+++ b/clang/test/Sema/static-init.c
@@ -1,6 +1,6 @@
-// RUN: %clang_cc1 -triple i386-pc-linux-gnu -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsyntax-only -verify %s
-#include <stdint.h>
+typedef __typeof((int*) 0 - (int*) 0) intptr_t;
static int f = 10;
static int b = f; // expected-error {{initializer element is not a compile-time constant}}
OpenPOWER on IntegriCloud