commit | a0992b63c9c938699da526dd6032ad30b6011656 | [log] [tgz] |
---|---|---|
author | Steve Naroff <snaroff@apple.com> | Mon Feb 18 15:14:59 2008 +0000 |
committer | Steve Naroff <snaroff@apple.com> | Mon Feb 18 15:14:59 2008 +0000 |
tree | 12f8091f1fec4abac92d14886d167e1ccbe6f69a | |
parent | 8af226a62dd9bb4a33bb86a8265532bbd75d76fc [diff] [blame] |
Tweak fix for http://llvm.org/bugs/show_bug.cgi?id=2000 to work across typedefs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47269 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/deref.c b/test/Sema/deref.c index 8f8156d..83f7f83 100644 --- a/test/Sema/deref.c +++ b/test/Sema/deref.c
@@ -21,6 +21,7 @@ } extern const void cv1; + const void *foo4 (void) { return &cv1; @@ -31,3 +32,12 @@ { 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; +} +