[llvm-commits] CVS: llvm/test/Regression/C++Frontend/ConstructorDestructorAttributes.c
Chris Lattner
lattner at cs.uiuc.edu
Thu Jun 26 09:57:01 PDT 2003
Changes in directory llvm/test/Regression/C++Frontend:
ConstructorDestructorAttributes.c added (r1.1)
---
Log message:
Add a testcase to ensure that ctor/dtor attributes work in C
---
Diffs of the changes:
Index: llvm/test/Regression/C++Frontend/ConstructorDestructorAttributes.c
diff -c /dev/null llvm/test/Regression/C++Frontend/ConstructorDestructorAttributes.c:1.1
*** /dev/null Thu Jun 26 09:56:47 2003
--- llvm/test/Regression/C++Frontend/ConstructorDestructorAttributes.c Thu Jun 26 09:56:36 2003
***************
*** 0 ****
--- 1,14 ----
+ #include <stdio.h>
+
+ void ctor() __attribute__((constructor));
+
+ void ctor() {
+ printf("Create!\n");
+ }
+ void dtor() __attribute__((destructor));
+
+ void dtor() {
+ printf("Create!\n");
+ }
+
+ int main() { return 0; }
More information about the llvm-commits
mailing list