1 # RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s 2 # This test ensures that an error is reported when a machine function doesn't 3 # have a name attribute. 4 5 --- | 6 7 define i32 @foo() { 8 ret i32 0 9 } 10 11 define i32 @bar() { 12 ret i32 0 13 } 14 15 ... 16 --- 17 # CHECK: [[@LINE+1]]:1: missing required key 'name' 18 nme: foo 19 ... 20 --- 21 name: bar 22 ... 23