commit | 81be82c56c7e28d2dd7dd95beec907a1158360db | [log] [tgz] |
---|---|---|
author | Daniel Dunbar <daniel@zuster.org> | Wed Feb 04 21:20:25 2009 +0000 |
committer | Daniel Dunbar <daniel@zuster.org> | Wed Feb 04 21:20:25 2009 +0000 |
tree | cfed17b8c8e79f3dece64b72663d635d620bd8d5 | |
parent | 9bae865d5640b2b3c2e73126433e1aed27aa2965 [diff] [blame] |
Test case for -femit-all-decls. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63777 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/emit-all-decls.c b/test/CodeGen/emit-all-decls.c new file mode 100644 index 0000000..68b6aec --- /dev/null +++ b/test/CodeGen/emit-all-decls.c
@@ -0,0 +1,8 @@ +// RUN: clang -emit-llvm -o %t %s && +// RUN: not grep "@foo" %t && +// RUN: clang -femit-all-decls -emit-llvm -o %t %s && +// RUN: grep "@foo" %t + +static void foo() { + +}