Debian Codegraph @

gcc/testsuite/g++.dg/lto/20090312_1.C

raw
1 #include "20090312.h"
2
3 /* This file should be compiled with the C front end. This
4 should be testing what happens when LTO merges enum types and function
5 prototypes compiled by the C and C++ FEs. Since both FEs generate
6 slightly different representations for these, LTO was emitting an
7 ODR violation error.
8
9 Once dejagnu can deal with multiple languages in a single test, remove
10 the __cplusplus checks and force this file to be compiled with the
11 C front end. */
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 JSErrorCallback p = 0;
17 enum Values x = ONE;
18
19 #ifdef __cplusplus
20 }
21 #endif