Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.old-deja/g++.law/ctors11.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
8 class A{ | 8 class A{ |
9 public: | 9 public: |
10 inline A(int x){printf("constructing A with %d\n", x);} | 10 inline A(int x){printf("constructing A with %d\n", x);} |
11 }; | 11 }; |
12 | 12 |
13 class B:public A{ // { dg-message "note" } non-default constructor | 13 class B:public A{ // { dg-message "note" "" { target c++17_down } } non-default constructor |
14 private: | 14 private: |
15 public: | 15 public: |
16 }; | 16 }; |
17 | 17 |
18 int main() | 18 int main() |
19 { | 19 { |
20 B(10);// { dg-error "match" } B doesn't have a constructor taking int | 20 B(10);// { dg-error "match" "" { target c++17_down } } B doesn't have a constructor taking int |
21 } | 21 } |