aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Sema/deref.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/deref.c')
-rw-r--r--clang/test/Sema/deref.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/clang/test/Sema/deref.c b/clang/test/Sema/deref.c
deleted file mode 100644
index 83f7f83..0000000
--- a/clang/test/Sema/deref.c
+++ /dev/null
@@ -1,43 +0,0 @@
-// RUN: clang -fsyntax-only -verify -std=c90 %s
-void
-foo (void)
-{
- struct b;
- struct b* x = 0;
- struct b* y = &*x;
-}
-
-void foo2 (void)
-{
- typedef int (*arrayptr)[];
- arrayptr x = 0;
- arrayptr y = &*x;
-}
-
-void foo3 (void)
-{
- void* x = 0;
- void* y = &*x; // expected-error{{address expression must be an lvalue or a function designator}}
-}
-
-extern const void cv1;
-
-const void *foo4 (void)
-{
- return &cv1;
-}
-
-extern void cv2;
-void *foo5 (void)
-{
- return &cv2; // expected-error{{address expression must be an lvalue or a function designator}}
-}
-
-typedef const void CVT;
-extern CVT cv3;
-
-const void *foo6 (void)
-{
- return &cv3;
-}
-