Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/opt/const3.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 |
---|---|
28 Type mType : 2; | 28 Type mType : 2; |
29 }; | 29 }; |
30 | 30 |
31 int i; | 31 int i; |
32 | 32 |
33 int A::foo1(void *ios, const char *str) { } | 33 int A::foo1(void *ios, const char *str) { return 0; } |
34 int A::foo2(int v, const Type t) { i=0; } | 34 int A::foo2(int v, const Type t) { i=0; return 0; } |
35 | 35 |
36 int main() | 36 int main() |
37 { | 37 { |
38 A testa(2, A::S); | 38 A testa(2, A::S); |
39 | 39 |