commit | 42e86b6afa75804154af2b72681f3625f308b006 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Thu Nov 01 02:45:17 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Thu Nov 01 02:45:17 2007 +0000 |
tree | 6012cb2e76d1c3f67c2d02560ab522f7760a5e3b | |
parent | 9be009eed1dc9d18e00702a9b2cf131769874b53 [diff] [blame] |
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
diff --git a/test/Sema/init.c b/test/Sema/init.c new file mode 100644 index 0000000..71b1d63 --- /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 }; +