You've already forked llvm-project
mirror of
https://github.com/encounter/llvm-project.git
synced 2026-03-30 11:27:19 -07:00
adb58e7598
Differential Revision: https://reviews.llvm.org/D27909 llvm-svn: 290075
23 lines
313 B
Objective-C
23 lines
313 B
Objective-C
// RUN: %clang_cc1 -Wno-objc-root-class -o /dev/null -triple x86_64-- -emit-llvm %s
|
|
// REQUIRES: asserts
|
|
// Verify there is no assertion.
|
|
|
|
@interface A
|
|
@end
|
|
|
|
extern A *a;
|
|
|
|
@interface X
|
|
@end
|
|
|
|
@implementation X
|
|
|
|
-(void)test {
|
|
struct S {
|
|
A *a;
|
|
int b;
|
|
};
|
|
struct S s[] = {{a, 0}, {(void *)0, 0}};
|
|
}
|
|
@end
|