aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/template8.C
blob: 0a24617239fe9560f913851112b8deb322a65523 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Build don't link: 
// GROUPS passed templates
#include <stdio.h>

// make sure we accept unions for templates
template<int n>
union Double_alignt{
	double for_alignt;
	char array[n];

};

main(){

	
	Double_alignt<20000> heap;

	printf(" &heap.array[0] = %d, &heap.for_alignt = %d\n", &heap.array[0], &heap.for_alignt);

}