repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
decl.c (create_array_type_for_decl): Add location_t parameter and use it.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p8483.C
blob
08b5161bae9969f358ae2f6088ea820ef1c03f1a
1
// { dg-do run }
2
// prms-id: 8483
3
4
int count;
5
6
class A {
7
public:
8
A() { ++count; }
9
~A() { }
10
};
11
12
class B {
13
private:
14
A b[2];
15
};
16
17
class C {
18
public:
19
private:
20
A c[2][2];
21
};
22
23
class D {
24
public:
25
private:
26
A d[2][2][2];
27
};
28
29
int main() {
30
{ A a; }
31
{ B b; }
32
{ C c; }
33
{ D d; }
34
if (count != 15)
35
return 1;
36
}