; RUN: opt -name-anon-globals -module-summary < %s | llvm-bcanalyzer -dump | FileCheck %s -check-prefix=BC ; RUN: opt -passes=name-anon-globals -module-summary < %s | llvm-bcanalyzer -dump | FileCheck %s -check-prefix=BC ; Check for summary block/records. ; BC: ; BC-NEXT: [#uses=0] @h = external global void ()* ; [#uses=0] define internal void @0() nounwind { entry: store void()* @0, void()** @h br label %return return: ; preds = %entry ret void } define i32 @variadic(...) { %ap = alloca i8*, align 8 %ap.0 = bitcast i8** %ap to i8* call void @llvm.va_start(i8* %ap.0) ret i32 42 } declare void @llvm.va_start(i8*) nounwind