diff options
Diffstat (limited to 'clang/test/CodeGen/static-forward-decl-fun.c')
-rw-r--r-- | clang/test/CodeGen/static-forward-decl-fun.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/static-forward-decl-fun.c b/clang/test/CodeGen/static-forward-decl-fun.c new file mode 100644 index 0000000..e33ee62 --- /dev/null +++ b/clang/test/CodeGen/static-forward-decl-fun.c @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 %s -emit-llvm -o %t + +static int staticfun(void); +int (*staticuse1)(void) = staticfun; +static int staticfun() {return 1;} +int (*staticuse2)(void) = staticfun; |