1 // { dg-options "-O2" }
3 // Contributed by Nathan Sidwell 22 Dec 2003 <nathan@codesourcery.com>
4 // Origin: rsandifo@redhat.com
6 // PR c++/13387. Alias sets were incorrect
9 C(short *p = 0, int i = 0) : ptr (p), index (i) {}
10 short operator*() { return ptr[index]; }
15 C f1 (C) __attribute__ ((noinline));
21 void f2 (short)__attribute__ ((noinline));;
29 C g (C x)__attribute__ ((noinline));
39 short p[2] = { 0x1234, 0x5678 };