summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/alignas17.C
blob: b736083affc4b6f1e80332973d0c10086e516731 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/89357
// { dg-do compile { target c++11 } }

void g(int &);

void f0() {
  __attribute__((aligned(128))) static int x;
  g(x);
}

void f1() {
  alignas(128) int x;
  g(x);
}