repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* g++.dg/cpp1z/cplusplus.C: Test that __cplusplus is equal to 201703L.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
pr66655.C
blob
218a2c63eb347991eab75b4f906776459a78735a
1
/* { dg-do run } */
2
/* { dg-additional-sources "pr66655_1.cc" } */
3
4
#include "pr66655.h"
5
6
extern "C" void abort (void);
7
8
#define COOKIE 0xabcd0123
9
10
int
11
g (void)
12
{
13
return COOKIE;
14
}
15
16
extern int f (void);
17
18
int
19
main (void)
20
{
21
S::set(0);
22
if (f () != COOKIE)
23
abort ();
24
return 0;
25
}