diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2009-04-28 17:59:09 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2009-04-28 17:59:09 +0000 |
| commit | 4058a842e6b69b5181c4e1d662a9bab386438255 (patch) | |
| tree | 88f984977f33741f485e3ae3dfcee07c95d80ed8 /clang/test/Sema/c89.c | |
| parent | 9f1d66419d39b9f5e5109d107d503c2ce4202552 (diff) | |
| download | bcm5719-llvm-4058a842e6b69b5181c4e1d662a9bab386438255.tar.gz bcm5719-llvm-4058a842e6b69b5181c4e1d662a9bab386438255.zip | |
Fix a minor edge case in C89 mode related to the definition of a
"function designator".
(This causes a minor glitch in the
diagnostics for C++ member pointers, but we weren't printing the
right diagnostic there anyway.)
llvm-svn: 70307
Diffstat (limited to 'clang/test/Sema/c89.c')
| -rw-r--r-- | clang/test/Sema/c89.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Sema/c89.c b/clang/test/Sema/c89.c index 3b1c7766fe5..e7585c31926 100644 --- a/clang/test/Sema/c89.c +++ b/clang/test/Sema/c89.c @@ -78,3 +78,5 @@ void test13b() { int b = 1[test13a().X]; /* expected-warning {{ISO C90 does not allow subscripting non-lvalue array}} */ } +/* Make sure we allow *test14 as a "function designator" */ +int test14() { return (&*test14)(); } |

