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);
24 // { dg-final { scan-assembler "jmp\[\t \]+\[^\$\]*?_Z3xxx17integral_constantIbLb1EE" { target { { i?86-*-* x86_64-*-* } && { ! ia32 } } } } }