xref: /llvm-project/flang/test/Semantics/bind-c10.f90 (revision 69373a5d3f45771cfb1896f9938e2444bedb7b33)
1! RUN: %python %S/test_errors.py %s %flang_fc1
2!ERROR: Symbol has a BIND(C) name that is not a valid C language identifier
3subroutine bang() bind(C,name='!')
4end
5!ERROR: Symbol has a BIND(C) name that is not a valid C language identifier
6subroutine cr() bind(C,name=achar(13))
7end
8!ERROR: Symbol has a BIND(C) name that is not a valid C language identifier
9subroutine beast() bind(C,name="666")
10end
11