diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/tree-ssa/pr50741.C')
-rw-r--r-- | gcc/testsuite/g++.dg/tree-ssa/pr50741.C | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr50741.C b/gcc/testsuite/g++.dg/tree-ssa/pr50741.C new file mode 100644 index 00000000000..843a7be4a7b --- /dev/null +++ b/gcc/testsuite/g++.dg/tree-ssa/pr50741.C @@ -0,0 +1,14 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -g" } */ +/* PR middle-end/50741 */ + +struct PublishLo +{ + const char *functionName; + ~PublishLo(); +}; +struct A { A(); }; +A::A() +{ + static PublishLo _rL_53 = {__FUNCTION__}; +} |