1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature
2; RUN: opt -aa-pipeline=basic-aa -passes=attributor -S < %s | FileCheck %s --check-prefixes=CHECK,IS__TUNIT____
3; RUN: opt -aa-pipeline=basic-aa -passes=attributor-cgscc -S < %s | FileCheck %s --check-prefixes=CHECK,IS__CGSCC____
4
5%struct.RT = type { i8, [10 x [20 x i32]], i8 }
6%struct.ST = type { i32, double, %struct.RT }
7
8define i32* @foo(%struct.ST* %s) nounwind uwtable readnone optsize ssp {
9; CHECK-LABEL: define {{[^@]+}}@foo
10; CHECK-SAME: (%struct.ST* nofree readnone [[S:%.*]]) #[[ATTR0:[0-9]+]] {
11; CHECK-NEXT:  entry:
12; CHECK-NEXT:    [[ARRAYIDX:%.*]] = getelementptr inbounds [[STRUCT_ST:%.*]], %struct.ST* [[S]], i64 1, i32 2, i32 1, i64 5, i64 13
13; CHECK-NEXT:    ret i32* [[ARRAYIDX]]
14;
15entry:
16  %arrayidx = getelementptr inbounds %struct.ST, %struct.ST* %s, i64 1, i32 2, i32 1, i64 5, i64 13
17  ret i32* %arrayidx
18}
19