2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / lto / 20090312_1.C
bloba0f9085f5286e43e9bafb3de95b1a9f678c04ae8
1 #include "20090312.h"
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.
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
16 JSErrorCallback p = 0;
17 enum Values x = ONE;
19 #ifdef __cplusplus
21 #endif