[llvm-commits] CVS: llvm/test/Regression/C++Frontend/ConstructorDestructorAttributes.c
John Criswell
criswell at choi.cs.uiuc.edu
Thu Jun 26 16:43:13 PDT 2003
Changes in directory llvm/test/Regression/C++Frontend:
ConstructorDestructorAttributes.c added (r1.1.2.1)
---
Log message:
Merged with mainline on Thursday, June 26, 2003.
---
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 16:37:24 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