xref: /llvm-project/flang/test/Preprocessing/renaming.F (revision 9fb2db1e1f42ae10a9d8c1d9410b5f4e719fdac0)
1! RUN: %flang -E %s | FileCheck %s
2! CHECK: ((1) * 10000 + (11) * 100)
3! Ensure that a keyword-like macro can be used to rename a
4! function-like macro.
5#define TO_VERSION2(MAJOR, MINOR) ((MAJOR) * 10000 + (MINOR) * 100)
6#define TO_VERSION TO_VERSION2
7      print *, TO_VERSION(1,11)
8      end
9