1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/Other/2009-09-14-function-elements.ll
Nick Lewycky 554eac4066 Forbid arrays of function-type and structures with function-typed fields.
While I'm there, change code that does:
  SomeTy == Type::getFooType(Context)
into:
  SomeTy->getTypeID() == FooTyID
to decrease the amount of useless type creation which may involve locking, etc.

llvm-svn: 81846
2009-09-15 06:28:26 +00:00

7 lines
209 B
LLVM

; RUN: not llvm-as %s -disable-output 2>/dev/null
; Arrays and structures with function types (not function pointers) are illegal.
@foo = external global [4 x i32 (i32)]
@bar = external global { i32 (i32) }