From: Chris Lattner Date: Thu, 26 Jun 2003 14:56:36 +0000 (+0000) Subject: Add a testcase to ensure that ctor/dtor attributes work in C X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=102f9015c61e9e7a84e1442705e85de19fe9b400;p=oota-llvm.git Add a testcase to ensure that ctor/dtor attributes work in C git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6919 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/C++Frontend/ConstructorDestructorAttributes.c b/test/C++Frontend/ConstructorDestructorAttributes.c new file mode 100644 index 00000000000..1a5fb9c4de0 --- /dev/null +++ b/test/C++Frontend/ConstructorDestructorAttributes.c @@ -0,0 +1,14 @@ +#include + +void ctor() __attribute__((constructor)); + +void ctor() { + printf("Create!\n"); +} +void dtor() __attribute__((destructor)); + +void dtor() { + printf("Create!\n"); +} + +int main() { return 0; }