]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/20_util/pair/cons/constexpr.cc
tuple: Mark more constructors constexpr.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 20_util / pair / cons / constexpr.cc
index 7bf6b71162dc8b73a7637fba77e9e35378702c5e..1c854627ed4c368adf09465bc82865113a5f3eb7 100644 (file)
 
 int main()
 {
-  __gnu_test::constexpr_default_constructible test;
-  test.operator()<std::pair<int, int>>();
+  __gnu_test::constexpr_default_constructible test1;
+  test1.operator()<std::pair<int, int>>();
+
+  __gnu_test::constexpr_single_value_constructible test2;
+  test2.operator()<std::pair<int, int>, std::pair<int, int>>();
+  test2.operator()<std::pair<int, int>, std::pair<short, short>>();
+
+  // test 3
+  const int i1(129);
+  const int i2(6);
+  constexpr std::pair<int, int> p3(i1, i2);
+
   return 0;
 }