mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 19:26:30 +00:00
Add a testcase to ensure that ctor/dtor attributes work in C
llvm-svn: 6919
This commit is contained in:
parent
6b54665aa9
commit
2fec73e216
@ -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; }
|
Loading…
x
Reference in New Issue
Block a user