annotate gcc/testsuite/g++.dg/pr94314-2.C @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
1 /* PR c++/94314. */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
2 /* { dg-do run } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
3 /* { dg-options "-O2 -fdump-tree-cddce-details -fdelete-null-pointer-checks" } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
4
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
5 struct A
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
6 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
7 __attribute__((always_inline)) A(int x)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
8 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
9 if (x == 123)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
10 throw x;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
11 }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
12 };
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
13
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
14 int
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
15 main(int argc, char **argv)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
16 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
17 A *a = new A (argc);
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
18 delete a;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
19
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
20 return 0;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
21 }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
22
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
23 /* { dg-final { scan-tree-dump-times "Deleting : operator delete" 2 "cddce1"} } */