Debian Codegraph @

gcc/testsuite/g++.dg/pr58123.C

raw
1 // { dg-do compile }
2 // { dg-options "-fdump-tree-gimple-lineno" }
3
4 // Test that the TRY block's location is the definition of "C a".
5
6 class C {
7 public:
8 C() {}
9 ~C() {}
10 int m() { return 0; }
11 };
12 int main() {
13 C a;
14 return a.m();
15 }
16
17 // { dg-final { scan-tree-dump-times "pr58123.C:13\.6\] try" 1 "gimple" } }