summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/special/conpr-3a.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/special/conpr-3a.cc')
-rw-r--r--gcc/testsuite/g++.dg/special/conpr-3a.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/special/conpr-3a.cc b/gcc/testsuite/g++.dg/special/conpr-3a.cc
new file mode 100644
index 000000000..b237bb57f
--- /dev/null
+++ b/gcc/testsuite/g++.dg/special/conpr-3a.cc
@@ -0,0 +1,11 @@
+/* { dg-do run } */
+
+class foo_t {
+ int x;
+ static int count;
+public:
+ foo_t(void) { x=++count; }
+ int get(void) { return x; }
+};
+
+foo_t foo1 __attribute__((init_priority(6000)));