1*9880d681SAndroid Build Coastguard Worker; RUN: not llvm-as < %s > /dev/null 2> %t 2*9880d681SAndroid Build Coastguard Worker; RUN: grep "expected top-level entity" %t 3*9880d681SAndroid Build Coastguard Worker; PR1577 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker@anInt = global i32 1 6*9880d681SAndroid Build Coastguard Workeralias i32 @anAlias 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Workerdefine i32 @main() { 9*9880d681SAndroid Build Coastguard Worker ret i32 0 10*9880d681SAndroid Build Coastguard Worker} 11