diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-03 21:59:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-03 21:59:00 +0000 |
commit | f97a870664422ab666cefc744dd044866b5fdca0 (patch) | |
tree | e1f3ac10cf6e85b1e6bf01e52aedaaa229d83a3b /test/CFrontend | |
parent | 949a4b703892bb1609da45f4f9b6573c9c83f161 (diff) | |
download | external_llvm-f97a870664422ab666cefc744dd044866b5fdca0.zip external_llvm-f97a870664422ab666cefc744dd044866b5fdca0.tar.gz external_llvm-f97a870664422ab666cefc744dd044866b5fdca0.tar.bz2 |
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47858 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend')
-rw-r--r-- | test/CFrontend/2008-03-03-CtorAttrType.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CFrontend/2008-03-03-CtorAttrType.c b/test/CFrontend/2008-03-03-CtorAttrType.c new file mode 100644 index 0000000..dc0e47d --- /dev/null +++ b/test/CFrontend/2008-03-03-CtorAttrType.c @@ -0,0 +1,6 @@ +// RUN: %llvmgcc %s -S -emit-llvm -o - | grep llvm.global_ctors +int __attribute__((constructor)) foo(void) { + return 0; +} +void __attribute__((constructor)) bar(void) {} + |