1 /* 2 This test makes sure that flang's runtime does not depend on the C++ runtime 3 library. It tries to link this simple file against libFortranRuntime.a with 4 a C compiler. 5 6 REQUIRES: c-compiler 7 8 RUN: %cc -std=c90 %s -I%runtimeincludes %libruntime -o /dev/null 9 */ 10 11 #include "entry-names.h" 12 13 /* 14 Manually add declarations for the runtime functions that we want to make sure 15 we're testing. We can't include any headers directly since they likely contain 16 C++ code that would explode here. 17 */ 18 double RTNAME(CpuTime)(); 19 20 int main() { 21 double x = RTNAME(CpuTime)(); 22 return x; 23 } 24