brintos

brintos / llvm-project-archived public Read only

0
0
Text · 735 B · 9e3b7ad Raw
40 lines · plain
1// RUN: llvm-tblgen %s | FileCheck %s2// RUN: not llvm-tblgen -DERROR1 %s 2>&1 | FileCheck --check-prefix=ERROR1 %s3 4// This file tests the error message that is printed when a body is5// terminated with a semicolon in addition to the close brace.6 7// CHECK: class Class08// CHECK: def Rec09 10class Class0 {11}12 13def Rec0 {14}15 16multiclass MC0 {17  def R;18}19 20#ifdef ERROR121 22// ERROR1: error: A class or def body should not end with a semicolon23// ERROR1: Semicolon ignored24// ERROR1: error: A class or def body should not end with a semicolon25// ERROR1: Semicolon ignored26// ERROR1: error: A multiclass body should not end with a semicolon27// ERROR1: Semicolon ignored28 29class Class1 {30};31 32def Rec1 {33};34 35multiclass MC1 {36  def R;37};38 39#endif40