xref: /llvm-project/llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_attrs.ll (revision 569d6573218712d00e0072ab5cdab7ea6dd70ecc)
1; RUN: opt -aa-pipeline=basic-aa -passes=attributor -S < %s | FileCheck %s --check-prefixes=CHECK,IS__TUNIT____
2; RUN: opt -aa-pipeline=basic-aa -passes=attributor-cgscc -S < %s | FileCheck %s --check-prefixes=CHECK,IS__CGSCC____
3
4%struct.RT = type { i8, [10 x [20 x i32]], i8 }
5%struct.ST = type { i32, double, %struct.RT }
6
7define ptr @foo(ptr %s) nounwind uwtable readnone optsize ssp {
8entry:
9  %arrayidx = getelementptr inbounds %struct.ST, ptr %s, i64 1, i32 2, i32 1, i64 5, i64 13
10  ret ptr %arrayidx
11}
12