feat-cxx11.C: Commentary and rearrangement of tests.
authorEdward Smith-Rowland <3dw4rd@verizon.net>
Sun, 2 Nov 2014 02:51:41 +0000 (02:51 +0000)
committerEdward Smith-Rowland <emsr@gcc.gnu.org>
Sun, 2 Nov 2014 02:51:41 +0000 (02:51 +0000)
testsuite/

2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>

* g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
* g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
Commentary and rearrangement of tests.
* g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
Commentary and rearrangement of tests.
* g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
* g++.dg/cpp1y/feat-cxx98.C: Commentary.

c-family/

2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>

* c-cppbuiltin.c: Define __cpp_aggregate_nsdmi.

From-SVN: r217012

gcc/c-family/ChangeLog
gcc/c-family/c-cppbuiltin.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/feat-cxx11-neg.C
gcc/testsuite/g++.dg/cpp1y/feat-cxx11.C
gcc/testsuite/g++.dg/cpp1y/feat-cxx14.C
gcc/testsuite/g++.dg/cpp1y/feat-cxx98-neg.C
gcc/testsuite/g++.dg/cpp1y/feat-cxx98.C

index 4052b5edc7446d4d586d09eb95c1a739c8ac35f4..a28ef60b98461f1abb886bf66adebf6a2f31e600 100644 (file)
@@ -1,3 +1,13 @@
+2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
+
+       * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
+       * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
+       Commentary and rearrangement of tests.
+       * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
+       Commentary and rearrangement of tests.
+       * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
+       * g++.dg/cpp1y/feat-cxx98.C: Commentary.
+
 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
 
        * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
index 803f146ad02ded06b55ad163ddddedbda61bf9ba..26fabc2e4c4f9a0f0cd402685fb346ab2929fb9a 100644 (file)
@@ -841,7 +841,7 @@ c_cpp_builtins (cpp_reader *pfile)
          //cpp_undef (pfile, "__cpp_constexpr");
          //cpp_define (pfile, "__cpp_constexpr=201304");
          cpp_define (pfile, "__cpp_decltype_auto=201304");
-         //cpp_define (pfile, "__cpp_aggregate_nsdmi=201304");
+         cpp_define (pfile, "__cpp_aggregate_nsdmi=201304");
          cpp_define (pfile, "__cpp_variable_templates=201304");
          cpp_define (pfile, "__cpp_digit_separators=201309");
          //cpp_define (pfile, "__cpp_sized_deallocation=201309");
index ac737184b549d234aef932e9543214da5a8d45fb..969a4f85edd49120c4963d103f239b50634bc49b 100644 (file)
@@ -1,3 +1,13 @@
+2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
+
+       * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
+       * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
+       Commentary and rearrangement of tests.
+       * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
+       Commentary and rearrangement of tests.
+       * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
+       * g++.dg/cpp1y/feat-cxx98.C: Commentary.
+
 2014-10-31  Jakub Jelinek  <jakub@redhat.com>
 
        PR rtl-optimization/63659
index 6310ce666e36751cfd2c502b74b1061b2b1e6f89..8442d613f8eaa97664194d7fd5bbe7079e5d0ec6 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-do compile { target c++11_only } }
 // { dg-options "-pedantic-errors" }
 
-// These *are* defined in C++14 onwards.
+// C++14 features:
 
 #ifndef __cpp_binary_literals
 #  error "__cpp_binary_literals" // { dg-error "error" }
 #  error "__cpp_digit_separators" // { dg-error "error" }
 #endif
 
-//  Attribute [[deprecated]] is allowed in C++11 as an extension (with pedwarn).
-//#ifndef __cpp_attribute_deprecated
-//#  error "__cpp_attribute_deprecated"
-//#endif
+#ifndef __cpp_aggregate_nsdmi
+#  error "__cpp_aggregate_nsdmi" // { dg-error "error" }
+#endif
+
+//  Array TS features:
 
 #ifndef __cpp_runtime_arrays
 #  error "__cpp_runtime_arrays" // { dg-error "error" }
 #endif
+
+//  Attribute checks:
+
+//  Attribute [[deprecated]] is allowed in C++11 as an extension (with pedwarn).
+//#ifndef __cpp_attribute_deprecated
+//#  error "__cpp_attribute_deprecated"
+//#endif
index 6ebc0c84cb0d1ec14ca377b62b2b9bd59d36be32..b47311f9a16141eca56c7510945568c228e55e42 100644 (file)
@@ -1,6 +1,8 @@
 // { dg-do compile }
 // { dg-options "-std=gnu++11" }
 
+//  C++11 features:
+
 #ifndef __cpp_unicode_characters
 #  error "__cpp_unicode_characters"
 #elif __cpp_unicode_characters != 200704
 #  error "__cpp_alias_templates != 200704"
 #endif
 
-//  These C++14 features are allowed in C++11 in non-ANSI modes.
+//  C++14 features allowed in C++11 in non-ANSI modes:
+
 #ifndef __cpp_binary_literals
 #  error "__cpp_binary_literals"
 #elif __cpp_binary_literals != 201304
 #  error "__cpp_binary_literals != 201304"
 #endif
 
+//  Attribute checks:
+
+//  Attribute [[deprecated]] is allowed in C++11 as an extension (with pedwarn).
 #ifndef __cpp_attribute_deprecated
 #  error "__cpp_attribute_deprecated"
 #elif __cpp_attribute_deprecated != 201309
index 18ff09884650fbb0d78d7b6ea07b5ab5c627670d..aa58fe1751042277d22fa943d4a76b4835e45595 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-do compile { target c++14 } }
 // { dg-options "-I${srcdir}/g++.dg/cpp1y -I${srcdir}/g++.dg/cpp1y/testinc" }
 
-// Begin C++11 tests.
+//  C++11 features:
 
 #ifndef __cpp_unicode_characters
 #  error "__cpp_unicode_characters"
@@ -75,7 +75,7 @@
 #  error "__cpp_alias_templates != 200704"
 #endif
 
-// Begin C++14 tests.
+//  C++14 features:
 
 #ifndef __cpp_binary_literals
 #  error "__cpp_binary_literals"
 #  error "__cpp_return_type_deduction != 201304"
 #endif
 
-#ifndef __cpp_runtime_arrays
-#  error "__cpp_runtime_arrays"
-#elif __cpp_runtime_arrays != 201304
-#  error "__cpp_runtime_arrays != 201304"
-#endif
-
-//  Aggregate initializers not in yet.
-#ifdef __cpp_aggregate_nsdmi
+#ifndef __cpp_aggregate_nsdmi
 #  error "__cpp_aggregate_nsdmi"
+#elif __cpp_aggregate_nsdmi != 201304
+#  error "__cpp_aggregate_nsdmi != 201304"
 #endif
 
 #ifndef __cpp_variable_templates
 #  error "__cpp_digit_separators != 201309"
 #endif
 
+//  Sized deallocation not in yet.
+#ifdef __cpp_sized_deallocation
+#  error "__cpp_sized_deallocation"
+#endif
+
+//  Array TS features:
+
+#ifndef __cpp_runtime_arrays
+#  error "__cpp_runtime_arrays"
+#elif __cpp_runtime_arrays != 201304
+#  error "__cpp_runtime_arrays != 201304"
+#endif
+
+//  Attribute checks:
+
 #ifndef __cpp_attribute_deprecated
 #  error "__cpp_attribute_deprecated"
 #elif __cpp_attribute_deprecated != 201309
 #  error "__cpp_attribute_deprecated != 201309"
 #endif
 
-//  Sized deallocation not in yet.
-#ifdef __cpp_sized_deallocation
-#  error "__cpp_sized_deallocation"
-#endif
-
-// Begin include checks.
+//  Include checks:
 
 //  Check for __has_include macro.
 #ifndef __has_include
index b99b57efe0eb06e240b282d1d9fffec6fdd09398..3d75f98fd52c967d2cff4019abe4e3c83ca35ef8 100644 (file)
@@ -1,6 +1,8 @@
 // { dg-do compile { target c++98_only } }
 // { dg-options "-ansi" }
 
+//  C++11 features:
+
 #ifndef __cpp_runtime_arrays
 #  error "__cpp_runtime_arrays" // { dg-error "error" }
 #endif
@@ -53,9 +55,9 @@
 #  error "__cpp_alias_templates" // { dg-error "error" }
 #endif
 
-// C++14
+// C++14 features:
 
-// C++98 gets binary literals.
+// C++98 gets binary literals in non-ANSI modes.
 //#ifndef __cpp_binary_literals
 //#  error "__cpp_binary_literals"
 //#endif
 #  error "__cpp_return_type_deduction" // { dg-error "error" }
 #endif
 
-//  Aggregate initializers not in yet.
-//#ifdef __cpp_aggregate_nsdmi
-//#  error "__cpp_aggregate_nsdmi"
-//#endif
+#ifndef __cpp_aggregate_nsdmi
+#  error "__cpp_aggregate_nsdmi" // { dg-error "error" }
+#endif
 
 #ifndef __cpp_variable_templates
 #  error "__cpp_variable_templates" // { dg-error "error" }
 #  error "__cpp_digit_separators" // { dg-error "error" }
 #endif
 
-#ifndef __cpp_attribute_deprecated
-#  error "__cpp_attribute_deprecated" // { dg-error "error" }
-#endif
-
 //  Sized deallocation not in yet.
 //#ifdef __cpp_sized_deallocation
 //#  error "__cpp_sized_deallocation"
 //#endif
+
+//  Attribute checks:
+
+#ifndef __cpp_attribute_deprecated
+#  error "__cpp_attribute_deprecated" // { dg-error "error" }
+#endif
index a0a2b75e30bc0a302a74c3aac58b7578a5916cad..e6b3d77252e67925052e8d7b6a4bd1a9edb8491c 100644 (file)
@@ -1,7 +1,8 @@
 // { dg-do compile { target c++98_only } }
 // { dg-options "" }
 
-//  These C++14 features are allowed in C++98 in non-ANSI modes.
+//  C++14 features allowed in C++98 in non-ANSI modes:
+
 #ifndef __cpp_binary_literals
 #  error "__cpp_binary_literals"
 #elif  __cpp_binary_literals != 201304