aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp/embed-18.C
blob: c7ab8dc5757a340df40f2120235f07cf8bc15ebc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/118275
// { dg-do compile }
// { dg-options "" }

struct A { int a; char b[]; };
void bar (A *);

void
foo ()
{
  static struct A a = { .a = 1, .b = {
#embed __FILE__
				     } };
  bar (&a);
}