diff options
Diffstat (limited to 'test/CFrontend/attribute_constructor.c')
-rw-r--r-- | test/CFrontend/attribute_constructor.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CFrontend/attribute_constructor.c b/test/CFrontend/attribute_constructor.c new file mode 100644 index 0000000000..b2f7c9b19f --- /dev/null +++ b/test/CFrontend/attribute_constructor.c @@ -0,0 +1,6 @@ +// RUN: %llvmgcc %s -c -o - | llvm-dis | grep llvm.global_ctors + +void foo() __attribute__((constructor)); +void foo() { + bar(); +} |