diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/special/conpr-3b.cc')
-rw-r--r-- | gcc/testsuite/g++.dg/special/conpr-3b.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/special/conpr-3b.cc b/gcc/testsuite/g++.dg/special/conpr-3b.cc new file mode 100644 index 000000000..b5efa0c35 --- /dev/null +++ b/gcc/testsuite/g++.dg/special/conpr-3b.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 foo2 __attribute__((init_priority(5000))); |