diff options
author | Chris Lattner <sabre@nondot.org> | 2007-11-01 02:45:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-11-01 02:45:17 +0000 |
commit | 4ef8dd6e8736097bf9e3c387139c668565d89dca (patch) | |
tree | 6012cb2e76d1c3f67c2d02560ab522f7760a5e3b /test/Sema/init.c | |
parent | 0c67829763b98bc670062b553897a851fab17401 (diff) | |
download | clang-4ef8dd6e8736097bf9e3c387139c668565d89dca.tar.gz |
Implement test/Sema/init.c by treating functions as constants.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43599 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/init.c')
-rw-r--r-- | test/Sema/init.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Sema/init.c b/test/Sema/init.c new file mode 100644 index 0000000000..71b1d63d61 --- /dev/null +++ b/test/Sema/init.c @@ -0,0 +1,6 @@ +// RUN: clang %s -verify -fsyntax-only + +typedef void (* fp)(void); +void foo(void); +fp a[1] = { foo }; + |