PR c++/60336
[official-gcc.git] / gcc / testsuite / g++.dg / abi / pr68355.C
blob1354fc497b55b9db41d3d9f6a735dfc52ff8a0be
1 // { dg-do compile }
2 // { dg-options "-O2 -std=c++11 -fno-pic" }
3 // { dg-require-effective-target fpic }
5 template<typename _Tp, _Tp __v>
6 struct integral_constant
8   static constexpr _Tp value = __v;
9   typedef _Tp value_type;
10   typedef integral_constant<_Tp, __v> type;
11   constexpr operator value_type() const { return value; }
14 typedef integral_constant<bool, true> true_type;
15 extern void xxx (true_type c);
17 void
18 yyy (void)
20   true_type y;
21   xxx (y);
24 // { dg-final { scan-assembler "jmp\[\t \]+\[^\$\]*?_Z3xxx17integral_constantIbLb1EE" { target i?86-*-* x86_64-*-* } } }