mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-01 01:30:36 +00:00
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
This commit is contained in:
parent
b12b75365a
commit
102f9015c6
14
test/C++Frontend/ConstructorDestructorAttributes.c
Normal file
14
test/C++Frontend/ConstructorDestructorAttributes.c
Normal 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; }
|
Loading…
x
Reference in New Issue
Block a user