diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/ext/is_trivially_constructible5.C')
-rw-r--r-- | gcc/testsuite/g++.dg/ext/is_trivially_constructible5.C | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/ext/is_trivially_constructible5.C b/gcc/testsuite/g++.dg/ext/is_trivially_constructible5.C new file mode 100644 index 00000000000..15ea33675ed --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/is_trivially_constructible5.C @@ -0,0 +1,12 @@ +// PR c++/80991 +// { dg-do compile { target c++11 } } + +template<bool> void foo() +{ + static_assert(__is_trivially_constructible(int, int), ""); +} + +void bar() +{ + foo<true>(); +} |