comparison gcc/testsuite/g++.dg/cpp0x/missing-initializer_list-include.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
5 5
6 // { dg-do compile { target c++11 } } 6 // { dg-do compile { target c++11 } }
7 7
8 void test (int i) 8 void test (int i)
9 { 9 {
10 auto a = { &i }; // { dg-error "deducing from brace-enclosed initializer list requires #include <initializer_list>" } 10 auto a = { &i }; // { dg-error "deducing from brace-enclosed initializer list requires '#include <initializer_list>'" }
11 } 11 }
12 12
13 /* Verify the output from -fdiagnostics-generate-patch. 13 /* Verify the output from -fdiagnostics-generate-patch.
14 We expect the patch to begin with a header, containing this 14 We expect the patch to begin with a header, containing this
15 source filename, via an absolute path. 15 source filename, via an absolute path.
22 { dg-begin-multiline-output "" } 22 { dg-begin-multiline-output "" }
23 @@ -1,3 +1,4 @@ 23 @@ -1,3 +1,4 @@
24 +#include <initializer_list> 24 +#include <initializer_list>
25 /* This is padding (to avoid the generated patch containing DejaGnu 25 /* This is padding (to avoid the generated patch containing DejaGnu
26 directives). */ 26 directives). */
27
27 { dg-end-multiline-output "" } 28 { dg-end-multiline-output "" }
28 #endif 29 #endif