source: icGREP/icgrep-devel/llvm-3.8.0.src/test/Assembler/getelementptr_struct.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 365 bytes
Line 
1; RUN: not llvm-as < %s >/dev/null 2> %t
2; RUN: FileCheck %s < %t
3; Test the case of a incorrect indices type into struct
4
5; CHECK: invalid getelementptr indices
6
7%RT = type { i8 , [10 x [20 x i32]], i8  }
8%ST = type { i32, double, %RT }
9
10define i32* @foo(%ST* %s) {
11entry:
12  %reg = getelementptr %ST, %ST* %s, i32 1, i64 2, i32 1, i32 5, i32 13
13  ret i32* %reg
14}
15
Note: See TracBrowser for help on using the repository browser.