This commit adds support for the `__COUNTER__` preprocessor macro, which works the same as the one found in clang. It is useful to generate unique names at compile-time.
10 lines
208 B
Fortran
10 lines
208 B
Fortran
! RUN: %flang -E %s | FileCheck %s
|
|
! CHECK: print *, 0
|
|
! CHECK: print *, 1
|
|
! CHECK: print *, 2
|
|
! Check incremental counter macro
|
|
#define foo bar
|
|
print *, __COUNTER__
|
|
print *, __COUNTER__
|
|
print *, __COUNTER__
|