aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp/embed-21.C
blob: 67c9993f169323b249464225f148312b0261d691 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// PR c++/118528
// { dg-do compile { target c++20 } }
// { dg-options "" }

template<class T>
struct E { T t[130][2]; };

E e1 {
#embed __FILE__ limit (260)
};

template<class T>
struct F { T t[2][130]; };

F f1 {
#embed __FILE__ limit (260)
};
F f2 { { {
#embed __FILE__ limit (130)
}, {
#embed __FILE__ limit (130)
} } };