projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6736dce
)
New testcase
author
Chris Lattner
<sabre@nondot.org>
Tue, 13 May 2003 18:09:44 +0000
(18:09 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 13 May 2003 18:09:44 +0000
(18:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6164
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/C++Frontend/global_ctor.cpp
[new file with mode: 0644]
patch
|
blob
diff --git a/test/C++Frontend/global_ctor.cpp
b/test/C++Frontend/global_ctor.cpp
new file mode 100644
(file)
index 0000000..
ebca6b5
--- /dev/null
+++ b/
test/C++Frontend/global_ctor.cpp
@@ -0,0
+1,11
@@
+int array[] = { 1, 2, 3, 4 };
+
+struct foo {
+ foo() throw();
+} Constructor1; // Global with ctor to be called before main
+
+foo Constructor2;
+
+struct bar {
+ ~bar() throw();
+} Destructor1; // Global with dtor