Add a testcase to ensure that ctor/dtor attributes work in C

llvm-svn: 6919
This commit is contained in:
Chris Lattner 2003-06-26 14:56:36 +00:00
parent eaae578820
commit d104cdb0ba
1 changed files with 14 additions and 0 deletions

View File

@ -0,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; }