1// RUN: llvm-tblgen %s | FileCheck %s 2// RUN: not llvm-tblgen -DERROR1 %s 2>&1 | FileCheck --check-prefix=ERROR1 %s 3 4// This file tests the error message that is printed when a body is 5// terminated with a semicolon in addition to the close brace. 6 7// CHECK: class Class0 8// CHECK: def Rec0 9 10class Class0 { 11} 12 13def Rec0 { 14} 15 16multiclass MC0 { 17 def R; 18} 19 20#ifdef ERROR1 21 22// ERROR1: error: A class or def body should not end with a semicolon 23// ERROR1: Semicolon ignored 24// ERROR1: error: A class or def body should not end with a semicolon 25// ERROR1: Semicolon ignored 26// ERROR1: error: A multiclass body should not end with a semicolon 27// ERROR1: Semicolon ignored 28 29class Class1 { 30}; 31 32def Rec1 { 33}; 34 35multiclass MC1 { 36 def R; 37}; 38 39#endif 40