summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr44486.C
blob: 01e84289f0b91eedc75f23f3496a799df15cb984 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/44486 missing space in __PRETTY_FUNCTION__ expansion in anonymous namespace
// { dg-do compile }
// { dg-options "" }

struct S { };
namespace { S f() { const char * s = __PRETTY_FUNCTION__; return S(); } }

int main() { f(); }

// { dg-final { scan-assembler "S \{anonymous\}::f" } }