diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/constexpr-empty.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/constexpr-empty.C | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-empty.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-empty.C new file mode 100644 index 000000000..a9fc4388a --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-empty.C @@ -0,0 +1,7 @@ +// { dg-options -std=c++0x } + +struct Empty {}; + +constexpr bool f(Empty) { return true; } + +constexpr bool x(f(Empty{})); |