llvm-project/flang/test/Parser/pp-dir-comments.f90

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
339 B
Fortran
Raw Normal View History

! RUN: %f18 -funparse %s 2>&1 | FileCheck %s
#define pmk
#ifdef pmk // comment
! CHECK: t1
real t1
#endif // comment
#undef pmk ! comment
#ifndef pmk ! comment
! CHECK: t2
real t2
#endif // comment
#if 0 /* C comment */ + 0
! CHECK-NOT: misinterpreted
# error misinterpreted #if
#else // comment
! CHECK: END PROGRAM
end
#endif ! comment