diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2008-08-25 20:08:27 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2008-08-25 20:08:27 +0000 |
| commit | 8d57244601ed878f524de2275ff683f4594ba57a (patch) | |
| tree | bee377b07790fe4b3cc157bf101935722eef6b9c /clang/test | |
| parent | a968d42be0f13653dee4efe2dde950fb98f3c843 (diff) | |
| download | bcm5719-llvm-8d57244601ed878f524de2275ff683f4594ba57a.tar.gz bcm5719-llvm-8d57244601ed878f524de2275ff683f4594ba57a.zip | |
Add test case for function-pointer-cast-of-global as constant
expression.
llvm-svn: 55323
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Sema/init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Sema/init.c b/clang/test/Sema/init.c index f6cf9c3971f..964118ce021 100644 --- a/clang/test/Sema/init.c +++ b/clang/test/Sema/init.c @@ -54,3 +54,7 @@ int pbool(void) { // rdar://5870981 union { float f; unsigned u; } u = { 1.0f }; +// rdar://6156694 +int f3(int x) { return x; } +typedef void (*vfunc)(void); +void *bar = (vfunc) f3; |

