summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/attrib1.C
blob: 839e4ce215d6f66079c3b92ef0ad29d2464a8992 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do run }

void f() __attribute((__constructor__));
int i;
void f() { i = 1; }

int main(int, char **)
{
  return 1-i;
}