summaryrefslogtreecommitdiff
path: root/flang/test/Transforms/debug-extra-global.fir
blob: e3a33e4cfdf40e5b5fe76510704d74cac8ae603f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: fir-opt --add-debug-info --mlir-print-debuginfo %s | FileCheck %s

module {
  fir.global linkonce_odr @_QFEXnXxcx constant target : !fir.char<1,3> {
    %0 = fir.string_lit "xcx"(3) : !fir.char<1,3>
    fir.has_value %0 : !fir.char<1,3>
  } loc(#loc1)
  fir.global linkonce_odr @_QFEXnXxdtx constant target : !fir.char<1,4> {
    %0 = fir.string_lit "xdtx"(4) : !fir.char<1,4>
    fir.has_value %0 : !fir.char<1,4>
  } loc(#loc1)
}
#loc1 = loc("derived.f90":24:1)

// Test that no di_global_variable gets created for these compile generated
// globals.

// CHECK-NOT: #di_global_variable