Skip to content

Commit b8fc288

Browse files
authored
[Dexter] Replace clang with clang++ in various cross project tests (#65987)
This patch replaces invocations of clang with clang++ for a set of c++ files in the dexter cross-project tests. As a small additional change, this patch removes -lstdc++ from a test that did not appear to require it.
1 parent 0080404 commit b8fc288

File tree

79 files changed

+118
-90
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+118
-90
lines changed

cross-project-tests/debuginfo-tests/dexter-tests/aggregate-indirect-arg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: lldb
22
// UNSUPPORTED: system-windows
33
//
4-
// RUN: %clang -std=gnu++11 -O0 -g -lstdc++ %s -o %t
4+
// RUN: %clang++ -std=gnu++11 -O0 -g %s -o %t
55
// RUN: %dexter --fail-lt 1.0 -w \
66
// RUN: --binary %t --debugger 'lldb' -- %s
77
// Radar 8945514

cross-project-tests/debuginfo-tests/dexter-tests/asan-deque.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// lldb-8, even outside of dexter, will sometimes trigger an asan fault in
99
// the debugged process and generally freak out.
1010

11-
// RUN: %clang -std=gnu++11 -O1 -glldb -fsanitize=address -arch x86_64 %s -o %t
11+
// RUN: %clang++ -std=gnu++11 -O1 -glldb -fsanitize=address -arch x86_64 %s -o %t
1212
// RUN: %dexter --fail-lt 1.0 -w \
1313
// RUN: --binary %t --debugger 'lldb' -- %s
1414
#include <deque>

cross-project-tests/debuginfo-tests/dexter-tests/ctor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: lldb
22
// UNSUPPORTED: system-windows
33
//
4-
// RUN: %clang -std=gnu++11 -O0 -glldb %s -o %t
4+
// RUN: %clang++ -std=gnu++11 -O0 -glldb %s -o %t
55
// RUN: %dexter --fail-lt 1.0 -w \
66
// RUN: --binary %t --debugger 'lldb' -- %s
77

cross-project-tests/debuginfo-tests/dexter-tests/deferred_globals.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// REQUIRES: lldb
66
// UNSUPPORTED: system-windows
7-
// RUN: %clang -std=gnu++11 -O0 -g %s -o %t
7+
// RUN: %clang++ -std=gnu++11 -O0 -g %s -o %t
88
// RUN: %dexter --fail-lt 1.0 -w \
99
// RUN: --binary %t --debugger 'lldb' -v -- %s
1010

cross-project-tests/debuginfo-tests/dexter-tests/namespace.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: lldb
66
// UNSUPPORTED: system-windows
77

8-
// RUN: %clang -g -O0 %s -o %t
8+
// RUN: %clang++ -g -O0 %s -o %t
99
// RUN: %dexter --fail-lt 1.0 -w \
1010
// RUN: --binary %t --debugger 'lldb' -v -- %s
1111

cross-project-tests/debuginfo-tests/dexter-tests/nrvo-string.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
// Zorg configures the ASAN stage2 bots to not build the asan
88
// compiler-rt. Only run this test on non-asanified configurations.
99
//
10-
// RUN: %clang -std=gnu++11 -O0 -glldb -fno-exceptions %s -o %t
10+
// RUN: %clang++ -std=gnu++11 -O0 -glldb -fno-exceptions %s -o %t
1111
// RUN: %dexter --fail-lt 1.0 -w \
1212
// RUN: --binary %t --debugger 'lldb' -- %s
1313
//
14-
// RUN: %clang -std=gnu++11 -O1 -glldb -fno-exceptions %s -o %t
14+
// RUN: %clang++ -std=gnu++11 -O1 -glldb -fno-exceptions %s -o %t
1515
// RUN: %dexter --fail-lt 1.0 -w \
1616
// RUN: --binary %t --debugger 'lldb' -- %s
1717
//

cross-project-tests/debuginfo-tests/dexter-tests/optnone-fastmath.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// RUN: %clang -std=gnu++11 -O2 -ffast-math -g %s -o %t
1+
// RUN: %clang++ -std=gnu++11 -O2 -ffast-math -g %s -o %t
22
// RUN: %dexter --fail-lt 1.0 -w \
33
// RUN: --binary %t --debugger 'lldb' -- %s
4-
// RUN: %clang -std=gnu++11 -O0 -ffast-math -g %s -o %t
4+
// RUN: %clang++ -std=gnu++11 -O0 -ffast-math -g %s -o %t
55
// RUN: %dexter --fail-lt 1.0 -w \
66
// RUN: --binary %t --debugger 'lldb' -- %s
77

cross-project-tests/debuginfo-tests/dexter-tests/optnone-loops.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// UNSUPPORTED: system-windows
66
// UNSUPPORTED: system-darwin
77

8-
// RUN: %clang -std=gnu++11 -O2 -g %s -o %t
8+
// RUN: %clang++ -std=gnu++11 -O2 -g %s -o %t
99
// RUN: %dexter --fail-lt 1.0 -w \
1010
// RUN: --binary %t --debugger 'lldb' -- %s
1111

cross-project-tests/debuginfo-tests/dexter/feature_tests/commands/penalty/dex_declare_file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// UNSUPPORTED: system-darwin
66
//
77
//
8-
// RUN: %dexter_regression_test_build %s -o %t
8+
// RUN: %dexter_regression_test_cxx_build %s -o %t
99
// RUN: not %dexter_regression_test_run --binary %t -- %s | FileCheck %s
1010
// CHECK: dex_declare_file.cpp
1111

cross-project-tests/debuginfo-tests/dexter/feature_tests/commands/penalty/expect_program_state.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//
55
// UNSUPPORTED: system-darwin
66
//
7-
// RUN: %dexter_regression_test_build %s -o %t
7+
// RUN: %dexter_regression_test_cxx_build %s -o %t
88
// RUN: not %dexter_regression_test_run --binary %t -- %s | FileCheck %s
99
// CHECK: expect_program_state.cpp:
1010

0 commit comments

Comments
 (0)