aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-01-14 16:10:57 +0000
committerSteve Naroff <snaroff@apple.com>2008-01-14 16:10:57 +0000
commitaa58f00ebba5f14955001736b7aea20bb5bd91e6 (patch)
tree97b8570acaf0cf2b4900a933f6eaf239aa76f370 /test
parent579712091a22f12de911f9949aedc4366f492c78 (diff)
Revert r45951, Chris says it violates the C99 spec.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45961 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Sema/conditional-expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Sema/conditional-expr.c b/test/Sema/conditional-expr.c
index 24e71153f1..c7c6ff242c 100644
--- a/test/Sema/conditional-expr.c
+++ b/test/Sema/conditional-expr.c
@@ -1,8 +1,8 @@
// RUN: clang -fsyntax-only -verify -pedantic %s
void foo() {
*(0 ? (double *)0 : (void *)0) = 0;
- *(0 ? (double *)0 : (void *)(int *)0) = 0;
- *(0 ? (double *)0 : (void *)(double *)0) = 0;
+ *(0 ? (double *)0 : (void *)(int *)0) = 0; // expected-error {{incomplete type 'void' is not assignable}}
+ *(0 ? (double *)0 : (void *)(double *)0) = 0; // expected-error {{incomplete type 'void' is not assignable}}
*(0 ? (double *)0 : (int *)(void *)0) = 0; // expected-warning {{pointer type mismatch ('double *' and 'int *')}}
*(0 ? (double *)0 : (double *)(void *)0) = 0;
*((void *) 0) = 0; // expected-error {{incomplete type 'void' is not assignable}}