From bca07a4524feb4edec581062d631a13116320a24 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 20 Feb 2011 13:06:31 +0000 Subject: Vendor import of clang trunk r126079: http://llvm.org/svn/llvm-project/cfe/trunk@126079 --- test/Sema/pointer-addition.c | 1 + 1 file changed, 1 insertion(+) (limited to 'test/Sema/pointer-addition.c') diff --git a/test/Sema/pointer-addition.c b/test/Sema/pointer-addition.c index 34f8bbbfcd6d6..aa425a7fd9d98 100644 --- a/test/Sema/pointer-addition.c +++ b/test/Sema/pointer-addition.c @@ -9,6 +9,7 @@ void a(S* b, void* c) { c += 1; // expected-warning {{use of GNU void* extension}} c--; // expected-warning {{use of GNU void* extension}} c -= 1; // expected-warning {{use of GNU void* extension}} + (void) c[1]; // expected-warning {{use of GNU void* extension}} b = 1+b; // expected-error {{arithmetic on pointer to incomplete type}} /* The next couple tests are only pedantic warnings in gcc */ void (*d)(S*,void*) = a; -- cgit v1.2.3