[llvm-commits] [llvm] r47858 - /llvm/trunk/test/CFrontend/2008-03-03-CtorAttrType.c

Chris Lattner sabre at nondot.org
Mon Mar 3 13:59:00 PST 2008


Author: lattner
Date: Mon Mar  3 15:59:00 2008
New Revision: 47858

URL: http://llvm.org/viewvc/llvm-project?rev=47858&view=rev
Log:
new testcase

Added:
    llvm/trunk/test/CFrontend/2008-03-03-CtorAttrType.c

Added: llvm/trunk/test/CFrontend/2008-03-03-CtorAttrType.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CFrontend/2008-03-03-CtorAttrType.c?rev=47858&view=auto

==============================================================================
--- llvm/trunk/test/CFrontend/2008-03-03-CtorAttrType.c (added)
+++ llvm/trunk/test/CFrontend/2008-03-03-CtorAttrType.c Mon Mar  3 15:59:00 2008
@@ -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) {}
+





More information about the llvm-commits mailing list