From 554fd8c5195424bdbcabf5de30fdc183aba391bd Mon Sep 17 00:00:00 2001 From: upstream source tree Date: Sun, 15 Mar 2015 20:14:05 -0400 Subject: obtained gcc-4.6.4.tar.bz2 from upstream website; verified gcc-4.6.4.tar.bz2.sig; imported gcc-4.6.4 source tree from verified upstream tarball. downloading a git-generated archive based on the 'upstream' tag should provide you with a source tree that is binary identical to the one extracted from the above tarball. if you have obtained the source via the command 'git clone', however, do note that line-endings of files in your working directory might differ from line-endings of the respective files in the upstream repository. --- gcc/testsuite/g++.dg/lto/pr45679-1_0.C | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 gcc/testsuite/g++.dg/lto/pr45679-1_0.C (limited to 'gcc/testsuite/g++.dg/lto/pr45679-1_0.C') diff --git a/gcc/testsuite/g++.dg/lto/pr45679-1_0.C b/gcc/testsuite/g++.dg/lto/pr45679-1_0.C new file mode 100644 index 000000000..349f5c2c1 --- /dev/null +++ b/gcc/testsuite/g++.dg/lto/pr45679-1_0.C @@ -0,0 +1,28 @@ +// { dg-lto-do link } +// { dg-lto-options {{-O3 -Wno-multichar}} } +// { dg-extra-ld-options "-flto -flto-partition=1to1 -r -nostdlib" } + + extern "C" { + typedef struct __locale_struct { + } + *__locale_t; + } + typedef void * POVMSContext; + struct POVMSData { + }; + int POVMS_OpenContext (POVMSContext *contextrefptr); + enum { + kPOVMsgIdent_InitInfo = 'InIn', kPOVMsgIdent_RenderOptions = 'ROpt', kPOVMsgIdent_RenderAll = 'RAll', kPOVMsgIdent_RenderArea = 'RAre', kPOVMsgIdent_RenderPause = 'RPau', kPOVMsgIdent_RenderStop = 'RSto', kPOVMsgIdent_RenderStarted = 'RRun', kPOVMsgIdent_RenderDone = 'REnd', kPOVMsgIdent_FrameStatistics = 'FSta', kPOVMsgIdent_ParseStatistics = 'PSta', kPOVMsgIdent_RenderStatistics = 'RSta', kPOVMsgIdent_Progress = 'Prog', kPOVMsgIdent_Warning = 'Warn', kPOVMsgIdent_Error = 'ErrW', kPOVMsgIdent_FatalError = 'ErrF', kPOVMsgIdent_Debug = 'Dbug' }; + namespace pov { + } + using namespace pov; + namespace pov { + int pre_init_flag = 0; + } + POVMSContext POVMS_Render_Context = __null; + void povray_init() { + if (pre_init_flag == 0) { + int err; + err = POVMS_OpenContext(&POVMS_Render_Context); + } + } -- cgit v1.2.3