Skip to content
Snippets Groups Projects
Commit 3519960f authored by Rafael Espindola's avatar Rafael Espindola
Browse files

Convert test to FileCheck.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185635 91177308-0d34-0410-b5e6-96231b3b80d8
parent 9e805906
No related branches found
No related tags found
No related merge requests found
// RUN: %clang_cc1 -emit-llvm %s -o - | \ // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
// RUN: opt -std-compile-opts -emit-llvm | not grep {declare i32.*func}
// There should not be an unresolved reference to func here. Believe it or not, // There should not be an unresolved reference to func here. Believe it or not,
// the "expected result" is a function named 'func' which is internal and // the "expected result" is a function named 'func' which is internal and
// referenced by bar(). // referenced by bar().
// This is PR244 // This is PR244
// CHECK: define void @bar(
// CHECK: call {{.*}} @func
// CHECK: define internal i32 @func(
static int func(); static int func();
void bar() { void bar() {
int func(); int func();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment