Changeset View
Changeset View
Standalone View
Standalone View
clang/test/CodeGen/aarch64-args.cpp
Context not available. | |||||
struct Empty {}; | struct Empty {}; | ||||
// CHECK: define i32 @empty_arg(i32 %a) | // CHECK: define noundef i32 @empty_arg(i32 noundef %a) | ||||
// CHECK-GNU-C: define i32 @empty_arg(i32 %a) | // CHECK-GNU-C: define noundef i32 @empty_arg(i32 noundef %a) | ||||
// CHECK-GNU-CXX: define i32 @empty_arg(i8 %e.coerce, i32 %a) | // CHECK-GNU-CXX: define noundef i32 @empty_arg(i8 %e.coerce, i32 noundef %a) | ||||
EXTERNC int empty_arg(struct Empty e, int a) { | EXTERNC int empty_arg(struct Empty e, int a) { | ||||
return a; | return a; | ||||
} | } | ||||
Context not available. | |||||
int arr[0]; | int arr[0]; | ||||
}; | }; | ||||
// CHECK: define i32 @super_empty_arg(i32 %a) | // CHECK: define noundef i32 @super_empty_arg(i32 noundef %a) | ||||
// CHECK-GNU-C: define i32 @super_empty_arg(i32 %a) | // CHECK-GNU-C: define noundef i32 @super_empty_arg(i32 noundef %a) | ||||
// CHECK-GNU-CXX: define i32 @super_empty_arg(i32 %a) | // CHECK-GNU-CXX: define noundef i32 @super_empty_arg(i32 noundef %a) | ||||
EXTERNC int super_empty_arg(struct SuperEmpty e, int a) { | EXTERNC int super_empty_arg(struct SuperEmpty e, int a) { | ||||
return a; | return a; | ||||
} | } | ||||
Context not available. | |||||
struct SuperEmpty e; | struct SuperEmpty e; | ||||
}; | }; | ||||
// CHECK: define i32 @sort_of_empty_arg(i32 %a) | // CHECK: define noundef i32 @sort_of_empty_arg(i32 noundef %a) | ||||
// CHECK-GNU-C: define i32 @sort_of_empty_arg(i32 %a) | // CHECK-GNU-C: define noundef i32 @sort_of_empty_arg(i32 noundef %a) | ||||
// CHECK-GNU-CXX: define i32 @sort_of_empty_arg(i8 %e.coerce, i32 %a) | // CHECK-GNU-CXX: define noundef i32 @sort_of_empty_arg(i8 %e.coerce, i32 noundef %a) | ||||
EXTERNC int sort_of_empty_arg(struct Empty e, int a) { | EXTERNC int sort_of_empty_arg(struct Empty e, int a) { | ||||
return a; | return a; | ||||
} | } | ||||
Context not available. |