summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/alignof2.C
blob: 7c5aad3de29672493de667f071e53f428e29c2ca (plain)
1
2
3
4
5
6
7
// { dg-do compile }
// { dg-options "-std=c++0x -pedantic" }
int main(void)
{
  alignof(int); //ok with a type but not with an expression
  alignof(3);   // { dg-warning "alignof" }
}