2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / template8.C
blob66ba0d8acf482cb92be0909fa65cb3aa9b2402a1
1 // { dg-do assemble  }
2 // GROUPS passed templates
3 #include <stdio.h>
5 // make sure we accept unions for templates
6 template<int n>
7 union Double_alignt{
8         double for_alignt;
9         char array[n];
13 int main(){
15         
16         Double_alignt<20000> heap;
18         printf(" &heap.array[0] = %d, &heap.for_alignt = %d\n", &heap.array[0], &heap.for_alignt);