aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/ext/attrib2.C
blob: a7563f3886b715debea12177036b43b72b0e569c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Test that an early attribute doesn't confuse uses of a class.
// { dg-do compile }

struct __attribute__ ((packed)) A
{
  void f () const;
};

void
A::f () const
{
}