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; }