mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Update tests.
llvm-svn: 111096
This commit is contained in:
parent
486898b881
commit
de1e03e890
@ -1,26 +0,0 @@
|
||||
// Check that extern options work.
|
||||
// The dummy tool and graph are required to silence warnings.
|
||||
// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
|
||||
// RUN: FileCheck -input-file %t %s
|
||||
// RUN: %compile_cxx -x c++ %t
|
||||
// XFAIL: vg_leak
|
||||
|
||||
include "llvm/CompilerDriver/Common.td"
|
||||
|
||||
// CHECK: extern cl::opt<bool> AutoGeneratedSwitch_Wall
|
||||
|
||||
def OptList : OptionList<[(switch_option "Wall", (extern)),
|
||||
(parameter_option "std", (extern)),
|
||||
(prefix_list_option "L", (extern))]>;
|
||||
|
||||
def dummy_tool : Tool<[
|
||||
(command "dummy_cmd"),
|
||||
(in_language "dummy"),
|
||||
(out_language "dummy"),
|
||||
(actions (case
|
||||
(switch_on "Wall"), (stop_compilation),
|
||||
(not_empty "std"), (stop_compilation),
|
||||
(not_empty "L"), (stop_compilation)))
|
||||
]>;
|
||||
|
||||
def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;
|
@ -7,7 +7,7 @@
|
||||
|
||||
include "llvm/CompilerDriver/Common.td"
|
||||
|
||||
def OptList : OptionList<[(parameter_option "dummy", (extern))]>;
|
||||
def OptList : OptionList<[(parameter_option "dummy", (help "dummmy"))]>;
|
||||
|
||||
def dummy_tool : Tool<[
|
||||
(command "dummy_cmd"),
|
||||
|
@ -7,8 +7,8 @@
|
||||
|
||||
include "llvm/CompilerDriver/Common.td"
|
||||
|
||||
def OptList : OptionList<[(parameter_option "a", (extern)),
|
||||
(prefix_list_option "b", (extern))]>;
|
||||
def OptList : OptionList<[(parameter_option "a", (help "dummy")),
|
||||
(prefix_list_option "b", (help "dummy"))]>;
|
||||
|
||||
// CHECK: std::string HookA
|
||||
// CHECK: std::string HookB
|
||||
|
@ -7,8 +7,8 @@
|
||||
|
||||
include "llvm/CompilerDriver/Common.td"
|
||||
|
||||
def OptList : OptionList<[(parameter_option "a", (extern)),
|
||||
(prefix_list_option "b", (extern))]>;
|
||||
def OptList : OptionList<[(parameter_option "a", (help "dummy")),
|
||||
(prefix_list_option "b", (help "dummy"))]>;
|
||||
|
||||
def dummy_tool : Tool<[
|
||||
(command "dummy_cmd"),
|
||||
|
@ -10,7 +10,7 @@ include "llvm/CompilerDriver/Common.td"
|
||||
def OptList : OptionList<[
|
||||
// CHECK: cl::multi_val(2)
|
||||
(prefix_list_option "foo", (multi_val 2)),
|
||||
(parameter_list_option "baz", (multi_val 2), (extern))]>;
|
||||
(parameter_list_option "baz", (multi_val 2))]>;
|
||||
|
||||
def dummy_tool : Tool<[
|
||||
(command "dummy_cmd"),
|
||||
|
@ -1,18 +0,0 @@
|
||||
// Check that multiple plugin priorities are not allowed.
|
||||
// RUN: ignore tblgen -I %p/../../include --gen-llvmc %s |& grep "More than one 'PluginPriority' instance found"
|
||||
// XFAIL: vg_leak
|
||||
|
||||
// Disable for Darwin PPC: <rdar://problem/7598390>
|
||||
// XFAIL: powerpc-apple-darwin
|
||||
// XFAIL: powerpc-darwin9
|
||||
|
||||
// This also fails on i386-darwin9 for some reason
|
||||
// XFAIL: i386-darwin9
|
||||
|
||||
include "llvm/CompilerDriver/Common.td"
|
||||
|
||||
def Graph : CompilationGraph<[]>;
|
||||
|
||||
def Priority1 : PluginPriority<1>;
|
||||
|
||||
def Priority2 : PluginPriority<2>;
|
@ -5,4 +5,4 @@
|
||||
|
||||
include "llvm/CompilerDriver/Common.td"
|
||||
|
||||
def OptList : OptionList<[(switch_option "Wall", (extern))]>;
|
||||
def OptList : OptionList<[(switch_option "Wall", (help "dummy"))]>;
|
||||
|
@ -1,4 +1,4 @@
|
||||
##===- tools/llvmc/driver/Makefile -------------------------*- Makefile -*-===##
|
||||
##===- tools/llvmc/src/Makefile ----------------------------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user