mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-20 10:42:36 +00:00
For PR1319: Upgrade to new test harness.
llvm-svn: 36084
This commit is contained in:
parent
2d25f3f7b5
commit
5647b43e74
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -xc++ -S -o - %s | grep '"struct.X::Y"'
|
// RUN: %llvmgcc -xc++ -S -o - %s | grep "struct.X::Y"
|
||||||
struct X {
|
struct X {
|
||||||
|
|
||||||
struct Y {
|
struct Y {
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
// The code generated for this testcase should be completely typesafe!
|
// The code generated for this testcase should be completely typesafe!
|
||||||
// RUN: %llvmgcc -xc++ -S -o - %s | llvm-as | opt -die | llvm-dis | not grep ' cast '
|
// RUN: %llvmgcc -xc++ -S -o - %s | llvm-as | opt -die | llvm-dis | \
|
||||||
|
// RUN: notcast
|
||||||
|
|
||||||
struct contained {
|
struct contained {
|
||||||
unsigned X;
|
unsigned X;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -xc++ -S -o - %s | llvm-as | opt -die | llvm-dis | not grep ' cast '
|
// RUN: %llvmgcc -xc++ -S -o - %s | llvm-as | opt -die | llvm-dis | notcast
|
||||||
|
|
||||||
struct A {
|
struct A {
|
||||||
A() : i(0) {}
|
A() : i(0) {}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgcc -xc++ -S -o - %s | not grep ' constant '
|
// RUN: %llvmgcc -xc++ -S -o - %s | not grep { constant }
|
||||||
|
|
||||||
extern int X;
|
extern int X;
|
||||||
const int Y = X;
|
const int Y = X;
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
struct Pass {} ;
|
struct Pass {} ;
|
||||||
template<typename PassName>
|
template<typename PassName>
|
||||||
Pass *callDefaultCtor() { return new PassName(); }
|
Pass *callDefaultCtor() { return new PassName(); }
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
// RUN: llvmgcc -xc++ %s -c -o - | llvm-dis | grep callDefaultCtor | not grep declare
|
// RUN: %llvmgxx -xc++ %s -c -o - | llvm-dis | grep callDefaultCtor | \
|
||||||
|
// RUN: not grep declare
|
||||||
|
|
||||||
// This is a testcase for LLVM PR445, which was a problem where the
|
// This is a testcase for LLVM PR445, which was a problem where the
|
||||||
// instantiation of callDefaultCtor was not being emitted correctly.
|
// instantiation of callDefaultCtor was not being emitted correctly.
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
// verifies that it does not emit the body of getchar, because it is not used.
|
// verifies that it does not emit the body of getchar, because it is not used.
|
||||||
// This corresponds to PR459
|
// This corresponds to PR459
|
||||||
|
|
||||||
// RUN: %llvmgxx %s -S -o - | not grep '^int .getchar'
|
// RUN: %llvmgxx %s -S -o - | not grep {^i32 .getchar}
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: %llvmgxx %s -S -o - | not grep 'int 6'
|
// RUN: %llvmgxx %s -S -o - | not grep {i32 6}
|
||||||
|
|
||||||
struct QVectorTypedData {
|
struct QVectorTypedData {
|
||||||
int size;
|
int size;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// XFAIL: llvmgcc3
|
// XFAIL: llvmgcc3
|
||||||
// RUN: %llvmgxx -O0 -emit-llvm -S -g -o - %s | grep 'i32 1,' &&
|
// RUN: %llvmgxx -O0 -emit-llvm -S -g -o - %s | grep {i32 1,}
|
||||||
// RUN: %llvmgxx -O0 -emit-llvm -S -g -o - %s | grep 'i32 2,'
|
// RUN: %llvmgxx -O0 -emit-llvm -S -g -o - %s | grep {i32 2,}
|
||||||
|
|
||||||
class A {
|
class A {
|
||||||
public:
|
public:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// RUN: %llvmgxx %s -emit-llvm -S -o - | not grep 'eprintf1' &&
|
// RUN: %llvmgxx %s -emit-llvm -S -o - | not grep eprintf1
|
||||||
// RUN: %llvmgxx %s -emit-llvm -S -o - | grep 'eprintf'
|
// RUN: %llvmgxx %s -emit-llvm -S -o - | grep eprintf
|
||||||
|
|
||||||
// Only one eprintf should exist in the output
|
// Only one eprintf should exist in the output
|
||||||
|
|
||||||
|
@ -1,10 +1,17 @@
|
|||||||
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | grep xglobWeak | grep linkonce | wc -l | grep 1
|
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
|
||||||
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | grep xextWeak | grep linkonce | wc -l | grep 1
|
// RUN: grep xglobWeak | grep linkonce | wc -l | grep 1
|
||||||
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | grep xWeaknoinline | grep weak wc -l | grep 1
|
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
|
||||||
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | grep xWeakextnoinline | grep weak wc -l | grep 1
|
// RUN: grep xextWeak | grep linkonce | wc -l | grep 1
|
||||||
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep declare | grep xglobnoWeak | grep linkonce | wc -l | grep 1
|
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
|
||||||
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | grep xstatnoWeak | grep internal | wc -l | grep 1
|
// RUN: grep xWeaknoinline | grep weak | wc -l | grep 1
|
||||||
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | grep xextnoWeak | grep linkonce | wc -l | grep 1
|
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
|
||||||
|
// RUN: grep xWeakextnoinline | grep weak | wc -l | grep 1
|
||||||
|
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep declare | \
|
||||||
|
// RUN: grep xglobnoWeak | grep linkonce | wc -l | grep 1
|
||||||
|
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
|
||||||
|
// RUN: grep xstatnoWeak | grep internal | wc -l | grep 1
|
||||||
|
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
|
||||||
|
// RUN: grep xextnoWeak | grep linkonce | wc -l | grep 1
|
||||||
inline int xglobWeak(int) __attribute__((weak));
|
inline int xglobWeak(int) __attribute__((weak));
|
||||||
inline int xglobWeak (int i) {
|
inline int xglobWeak (int i) {
|
||||||
return i*2;
|
return i*2;
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
load_lib llvm-dg.exp
|
load_lib llvm.exp
|
||||||
|
|
||||||
llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
|
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user