aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr66655.C
blob: 218a2c63eb347991eab75b4f906776459a78735a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* { dg-do run } */
/* { dg-additional-sources "pr66655_1.cc" } */

#include "pr66655.h"

extern "C" void abort (void);

#define COOKIE 0xabcd0123

int
g (void)
{
  return COOKIE;
}

extern int f (void);

int
main (void)
{
  S::set(0);
  if (f () != COOKIE)
    abort ();
  return 0;
}