From d95638df44c201e85aebd16805fa03837e110fe2 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 17 Feb 2010 19:26:59 +0000 Subject: [PATCH] Fix test to not force triple, and also to not need stdint.h. llvm-svn: 96499 --- clang/test/Sema/static-init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/test/Sema/static-init.c b/clang/test/Sema/static-init.c index 8011943755c0..b4de92713b88 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 +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}}