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