aarch64/testsuite: Fix if-compare_2.c for removing vcond{,u,eq} patterns [PR116041]
[official-gcc.git] / gcc / testsuite / g++.dg / ext / selectany1.C
blobe80fe4fd10c02ac4da8e695d36eff2fdae9db70d
1 // { dg-do compile { target i?86-pc-cygwin } }
2 // { dg-do compile { target i?86-*-mingw* x86_64-*-mingw* } }
4 // Check that selectany attribute puts symbols into link-once sections.
6 // { dg-final { scan-assembler "\.section\t\.data\\\$foo\[^\n\]*\n\t\.linkonce discard" } }
7 // { dg-final { scan-assembler "\.section\t\.data\\\$x\[^\n\]*\n\t\.linkonce discard" } }
9 __declspec (selectany) int foo = 1;
11 class X
13 private:
14   int m_i;
15 public:
16   X(int i): m_i(i){}
17   ~X(){}
20 __declspec(selectany) X x(1);