comparison gcc/testsuite/g++.dg/cpp0x/locations1.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
9 9
10 struct S 10 struct S
11 { 11 {
12 virtual S(); // { dg-error "3:constructors cannot be declared .virtual." } 12 virtual S(); // { dg-error "3:constructors cannot be declared .virtual." }
13 constexpr int s = 1; // { dg-error "3:non-static data member .s. declared .constexpr." } 13 constexpr int s = 1; // { dg-error "3:non-static data member .s. declared .constexpr." }
14 constexpr ~S(); // { dg-error "3:a destructor cannot be .constexpr." } 14 constexpr ~S(); // { dg-error "3:'constexpr' destructors only available with" "" { target c++17_down } }
15 }; 15 };
16 16
17 typedef constexpr int my_int; // { dg-error "9:.constexpr. cannot appear in a typedef declaration" } 17 typedef constexpr int my_int; // { dg-error "9:.constexpr. cannot appear in a typedef declaration" }
18 18
19 union U 19 union U