You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue #10894 seems to claim this wasn't working. The test does seem to
work as intended, except the CHECKs added in
3ac4299 aren't doing anything since
it wasn't really using FileCheck.
Extended Description
llvm/test/FrontendC/2007-06-15-AnnotateAttribute.c has a comment that reads:
// RUN: %llvmgcc -S %s -o - | grep llvm.global.annotations
// RUN: %llvmgcc -S %s -o - | grep llvm.var.annotation | count 3
When I run the following I get no output of any kind:
"clang -emit-llvm -S 2007-06-15-AnnotateAttribute.c -o - | grep llvm.var.annotation"
The following does seem to function correctly:
"clang -emit-llvm -S 2007-06-15-AnnotateAttribute.c -o - | grep llvm.global.annotation"
It outputs:
@llvm.global.annotations = appending global [2 x { i8*, i8*, i8*, i32 }] [{ i8*, i8*, i8*, i32 } { i8* bitcast (i32* @main.a to i8*), i8* getelementptr inbounds ([20 x i8]* @main.a1, i32 0, i32 0), i8* getelementptr inbounds ([31 x i8]* @.str, i32 0, i32 0), i32 20 }, { i8*, i8*, i8*, i32 } { i8* bitcast (i32* @X to i8*), i8* getelementptr inbounds ([20 x i8]* @X3, i32 0, i32 0), i8* getelementptr inbounds ([31 x i8]* @.str4, i32 0, i32 0), i32 7 }], section "llvm.metadata"
I attached the output of
"clang -emit-llvm -S 2007-06-15-AnnotateAttribute.c"
The text was updated successfully, but these errors were encountered: