brintos

brintos / llvm-project-archived public Read only

0
0
Text · 486 B · c6892da Raw
17 lines · plain
1// RUN: llvm-tblgen --print-detailed-records %s | FileCheck %s -DFILE=%{s:basename}2 3class A<int a> {4  int Num = a;5}6 7// Verify that the location of the anonymous record instantiated8// for A<10> and A<11> is correct. It should show the line where the9// anonymous record was instantiated and not the line where the class10// was defined.11def y {12  // CHECK: anonymous_0 |[[FILE]]:[[@LINE+1]]|13  int x = A<10>.Num;14  // CHECK: anonymous_1 |[[FILE]]:[[@LINE+1]]|15  int y = A<11>.Num;16}17