2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / compat / abi / pr38736_main.C
blobb9f6ac898ffafae81ab30db2c460222a631919e2
1 /* PR target/38736 */
2 /* { dg-skip-if "attribute ((aligned))" { ! { i?86-*-* x86_64-*-* } } } */
3 /* { dg-require-effective-target avx } */
5 /* Test compatibility of attribute ((aligned)) with and without -mavx.  */
7 extern int aligned_x (void);
8 extern int aligned_y_avx (void);
9 extern "C" void abort (void);
11 int
12 main ()
14   if (aligned_x () != aligned_y_avx ())
15     abort ();
17   return 0;