blob: 9f3b8b9269eed8b0a78e621e4a4acb8f460a9358 [file] [log] [blame]
This test makes sure that flang's runtime does not depend on the C++ runtime
library. It tries to link this simple file against libFortranRuntime.a with
a C compiler.
REQUIRES: c-compiler
RUN: %cc -std=c90 %s -I%include %libruntime %libdecimal -o /dev/null
#include "flang/Runtime/entry-names.h"
Manually add declarations for the runtime functions that we want to make sure
we're testing. We can't include any headers directly since they likely contain
C++ code that would explode here.
double RTNAME(CpuTime)();
int main() {
double x = RTNAME(CpuTime)();
return x;