Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/ipa/pr63838.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 |
---|---|
5 // { dg-final { scan-ipa-dump-not "Function found to be nothrow: void bar" "pure-const" } } | 5 // { dg-final { scan-ipa-dump-not "Function found to be nothrow: void bar" "pure-const" } } |
6 | 6 |
7 __attribute__((noinline, noclone)) static void bar (int); | 7 __attribute__((noinline, noclone)) static void bar (int); |
8 volatile int v; | 8 volatile int v; |
9 void (*fn) (); | 9 void (*fn) (); |
10 struct S { S () { v++; } ~S () { v++; } }; | 10 struct S { S () { v++; } ~S () { v++; } }; // { dg-warning "deprecated" "" { target c++2a } } |
11 | 11 |
12 __attribute__((noinline, noclone)) static void | 12 __attribute__((noinline, noclone)) static void |
13 foo (int x) | 13 foo (int x) |
14 { | 14 { |
15 v++; | 15 v++; // { dg-warning "deprecated" "" { target c++2a } } |
16 if (x == 5) | 16 if (x == 5) |
17 bar (x); | 17 bar (x); |
18 } | 18 } |
19 | 19 |
20 __attribute__((noinline, noclone)) static void | 20 __attribute__((noinline, noclone)) static void |
21 bar (int x) | 21 bar (int x) |
22 { | 22 { |
23 v++; | 23 v++; // { dg-warning "deprecated" "" { target c++2a } } |
24 if (x == 6) | 24 if (x == 6) |
25 foo (x); | 25 foo (x); |
26 else if (x == 5) | 26 else if (x == 5) |
27 fn (); | 27 fn (); |
28 } | 28 } |