Mercurial > hg > CbC > CbC_llvm
view test/DebugInfo/Inputs/arange-overlap.cc @ 120:1172e4bd9c6f
update 4.0.0
author | mir3636 |
---|---|
date | Fri, 25 Nov 2016 19:14:25 +0900 |
parents | 54457678186b |
children |
line wrap: on
line source
void call(); struct S { static void foo() { call(); call(); } static void bar() { call(); call(); } static void baz() {} }; #ifdef FILE1 # define FUNC_NAME func1 # define FUNC_BODY \ S::foo(); S::bar(); S::baz(); #else # define FUNC_NAME func2 # define FUNC_BODY \ S::bar(); #endif void FUNC_NAME() { FUNC_BODY } // Build instructions: // $ clang -g -fPIC -c -DFILE1 arange-overlap.cc -o obj1.o // $ clang -g -fPIC -c arange-overlap.cc -o obj2.o // $ clang -shared obj1.o obj2.o -o <output>