1 ! RUN: %python %S/test_errors.py %s %flang_fc1
5 attributes(global) subroutine sub1(adev)
9 ! Use to crash the compiler. Make sure we have the proper semantic error.
10 !ERROR: Actual argument for 'i=' has bad type 'REAL(4)'
11 adev(tid + 1) = scale(real(tid), 2.0)
16 real, device :: adev(10), bdev(10)
19 !ERROR: More than one reference to a CUDA object on the right hand side of the assigment
26 logical function compare_h(a,b)
27 !ERROR: Derived type 'h' not found
29 !ERROR: 'a' is not an object of derived type; it is implicitly typed
30 !ERROR: 'b' is not an object of derived type; it is implicitly typed
31 compare_h = (a%h .eq. b%h)
34 attributes(global) subroutine sub2()
35 if (threadIdx%x == 1) print *, "I'm number one"