Skip to content

Commit e4d2427

Browse files
committed
[test] %clang_cc1 -analyze: remove redundant actions
1 parent d0be944 commit e4d2427

39 files changed

+87
-87
lines changed

clang/test/Analysis/addrspace-null.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// RUN: %clang_analyze_cc1 -triple amdgcn-unknown-unknown \
2-
// RUN: -analyze -analyzer-checker=core -DAMDGCN_TRIPLE \
3-
// RUN: -analyze -analyzer-checker=debug.ExprInspection \
4-
// RUN: -Wno-implicit-int -Wno-int-conversion -verify %s
2+
// RUN: -analyzer-checker=core -DAMDGCN_TRIPLE \
3+
// RUN: -analyzer-checker=debug.ExprInspection \
4+
// RUN: -Wno-implicit-int -Wno-int-conversion -verify %s
55
//
66
// RUN: %clang_analyze_cc1 -triple amdgcn-unknown-unknown \
7-
// RUN: -analyze -analyzer-checker=core -DDEFAULT_TRIPLE \
8-
// RUN: -analyze -analyzer-checker=debug.ExprInspection \
9-
// RUN: -Wno-implicit-int -Wno-int-conversion -verify %s
7+
// RUN: -analyzer-checker=core -DDEFAULT_TRIPLE \
8+
// RUN: -analyzer-checker=debug.ExprInspection \
9+
// RUN: -Wno-implicit-int -Wno-int-conversion -verify %s
1010

1111
// From https://llvm.org/docs/AMDGPUUsage.html#address-spaces,
1212
// select address space 3 (local), since the pointer size is

clang/test/Analysis/ctu-cxxdefaultinitexpr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -std=c++17 \
44
// RUN: -emit-pch -o %t/ctudir/ctu-cxxdefaultinitexpr-import.cpp.ast %S/Inputs/ctu-cxxdefaultinitexpr-import.cpp
55
// RUN: cp %S/Inputs/ctu-cxxdefaultinitexpr-import.cpp.externalDefMap.ast-dump.txt %t/ctudir/externalDefMap.txt
6-
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -fsyntax-only -std=c++17 -analyze \
6+
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -std=c++17 -analyze \
77
// RUN: -analyzer-checker=core \
88
// RUN: -analyzer-config experimental-enable-naive-ctu-analysis=true \
99
// RUN: -analyzer-config ctu-dir=%t/ctudir \

clang/test/Analysis/ctu-lookup-name-with-space.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// RUN: %clang_cc1 -emit-pch %/S/Inputs/ctu-lookup-name-with-space.cpp -o %t/importee.ast
88

99
// RUN: cd %t
10-
// RUN: %clang_cc1 -fsyntax-only -analyze \
10+
// RUN: %clang_cc1 -analyze \
1111
// RUN: -analyzer-checker=core \
1212
// RUN: -analyzer-config experimental-enable-naive-ctu-analysis=true \
1313
// RUN: -analyzer-config ctu-dir=. \

clang/test/Analysis/ctu-main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: -emit-pch -o %t/ctudir2/ctu-other.c.ast %S/Inputs/ctu-other.c
55
// RUN: cp %S/Inputs/ctu-other.c.externalDefMap.ast-dump.txt %t/ctudir2/externalDefMap.txt
66

7-
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -fsyntax-only -std=c89 -analyze \
7+
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -std=c89 -analyze \
88
// RUN: -analyzer-checker=core,debug.ExprInspection \
99
// RUN: -analyzer-config eagerly-assume=false \
1010
// RUN: -analyzer-config experimental-enable-naive-ctu-analysis=true \
@@ -14,7 +14,7 @@
1414

1515
// Simulate the behavior of the previous CTU implementation by inlining all
1616
// functions during the first phase. This way, the second phase is a noop.
17-
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -fsyntax-only -std=c89 -analyze \
17+
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -std=c89 -analyze \
1818
// RUN: -analyzer-checker=core,debug.ExprInspection \
1919
// RUN: -analyzer-config eagerly-assume=false \
2020
// RUN: -analyzer-config experimental-enable-naive-ctu-analysis=true \

clang/test/Analysis/ctu-on-demand-parsing.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//
1212
// RUN: cd "%t" && %clang_extdef_map "%t/ctu-other.c" > externalDefMap.txt
1313
//
14-
// RUN: cd "%t" && %clang_cc1 -fsyntax-only -std=c89 -analyze \
14+
// RUN: cd "%t" && %clang_cc1 -std=c89 -analyze \
1515
// RUN: -analyzer-checker=core,debug.ExprInspection \
1616
// RUN: -analyzer-config experimental-enable-naive-ctu-analysis=true \
1717
// RUN: -analyzer-config ctu-dir=. \

clang/test/Analysis/handle_constructors_for_default_arguments.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsyntax-only -analyze \
1+
// RUN: %clang_cc1 -analyze \
22
// RUN: -analyzer-checker=core,debug.ExprInspection %s -verify
33

44
// These test cases demonstrate lack of Static Analyzer features.

clang/test/Analysis/handle_constructors_with_new_array.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsyntax-only -analyze \
1+
// RUN: %clang_cc1 -analyze \
22
// RUN: -analyzer-checker=core,debug.ExprInspection %s -verify
33

44
// These test cases demonstrate lack of Static Analyzer features.

clang/test/Analysis/html_diagnostics/relevant_lines/goto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ int goto_test(int input) {
88
}
99

1010
// RUN: rm -rf %t.output
11-
// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core -analyzer-output html -o %t.output %s
11+
// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output html -o %t.output %s
1212
// RUN: cat %t.output/* | FileCheck %s --match-full-lines
1313
// CHECK: var relevant_lines = {"1": {"1": 1, "2": 1, "3": 1, "4": 1, "6": 1, "7": 1}};

clang/test/Analysis/html_diagnostics/relevant_lines/macros_same_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ int f(int coin) {
1010
}
1111

1212
// RUN: rm -rf %t.output
13-
// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core -analyzer-output html -o %t.output %s
13+
// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output html -o %t.output %s
1414
// RUN: cat %t.output/* | FileCheck %s --match-full-lines
1515
// CHECK: var relevant_lines = {"1": {"3": 1, "4": 1, "5": 1, "6": 1}};

clang/test/Analysis/html_diagnostics/relevant_lines/multifile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ int f(int coin) {
99
}
1010

1111
// RUN: rm -rf %t.output
12-
// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core -analyzer-output html -o %t.output %s
12+
// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output html -o %t.output %s
1313
// RUN: cat %t.output/* | FileCheck %s --match-full-lines
1414
// CHECK: var relevant_lines = {"1": {"3": 1, "4": 1, "5": 1, "6": 1}, "4": {"3": 1, "4": 1, "5": 1, "6": 1, "7": 1}};

clang/test/Analysis/html_diagnostics/relevant_lines/multiline_func_def.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ int f(
1111
}
1212

1313
// RUN: rm -rf %t.output
14-
// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core -analyzer-output html -o %t.output %s
14+
// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output html -o %t.output %s
1515
// RUN: cat %t.output/* | FileCheck %s --match-full-lines
1616
// CHECK: var relevant_lines = {"1": {"1": 1, "2": 1, "3": 1, "4": 1, "5": 1, "6": 1, "7": 1}};

clang/test/Analysis/html_diagnostics/relevant_lines/notexecutedlines.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ int f(void) {
77
// Show line with the warning even if it wasn't executed (e.g. warning given
88
// by path-insensitive analysis).
99
// RUN: rm -rf %t.output
10-
// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core,deadcode -analyzer-output html -o %t.output %s
10+
// RUN: %clang_analyze_cc1 -analyzer-checker=core,deadcode -analyzer-output html -o %t.output %s
1111
// RUN: cat %t.output/* | FileCheck %s --match-full-lines
1212
// CHECK: var relevant_lines = {"1": {"3": 1}};

clang/test/Analysis/html_diagnostics/relevant_lines/objcmethods.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ void foo(I *i) {
1414
}
1515

1616
// RUN: rm -rf %t.output
17-
// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core -analyzer-output html -o %t.output -Wno-objc-root-class %s
17+
// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output html -o %t.output -Wno-objc-root-class %s
1818
// RUN: cat %t.output/* | FileCheck %s
1919
// CHECK: var relevant_lines = {"1": {"6": 1, "7": 1, "11": 1, "12": 1, "13": 1}};

clang/test/Analysis/html_diagnostics/relevant_lines/simple_conditional.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ int f(int coin) {
88
}
99

1010
// RUN: rm -rf %t.output
11-
// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core -analyzer-output html -o %t.output %s
11+
// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output html -o %t.output %s
1212
// RUN: cat %t.output/* | FileCheck %s --match-full-lines
1313
// CHECK: var relevant_lines = {"1": {"1": 1, "2": 1, "3": 1, "4": 1}};

clang/test/Analysis/html_diagnostics/relevant_lines/switch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ int f(enum E input) {
1515
}
1616

1717
// RUN: rm -rf %t.output
18-
// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core -analyzer-output html -o %t.output %s
18+
// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output html -o %t.output %s
1919
// RUN: cat %t.output/* | FileCheck %s --match-full-lines
2020
// CHECK: var relevant_lines = {"1": {"5": 1, "6": 1, "7": 1, "12": 1, "13": 1}};

clang/test/Analysis/html_diagnostics/relevant_lines/switch_default.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ int f(enum E input) {
1515
}
1616

1717
// RUN: rm -rf %t.output
18-
// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core -analyzer-output html -o %t.output %s
18+
// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output html -o %t.output %s
1919
// RUN: cat %t.output/* | FileCheck %s --match-full-lines
2020
// CHECK: var relevant_lines = {"1": {"5": 1, "6": 1, "7": 1, "12": 1, "13": 1}};

clang/test/Analysis/html_diagnostics/relevant_lines/synthesized_body.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ void call_deref_once() {
2020

2121

2222
// RUN: rm -rf %t.output
23-
// RUN: %clang_analyze_cc1 -std=c++11 -analyze -analyzer-checker=core -analyzer-output html -o %t.output %s
23+
// RUN: %clang_analyze_cc1 -std=c++11 -analyzer-checker=core -analyzer-output html -o %t.output %s
2424
// RUN: cat %t.output/* | FileCheck %s --match-full-lines
2525
// CHECK: var relevant_lines = {"1": {"3": 1, "8": 1, "11": 1, "12": 1, "15": 1, "16": 1, "17": 1, "18": 1}};

clang/test/Analysis/html_diagnostics/relevant_lines/unused_header.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ int v(int coin) {
1414
}
1515

1616
// RUN: rm -rf %t.output
17-
// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core -analyzer-output html -o %t.output %s
17+
// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output html -o %t.output %s
1818
// RUN: cat %t.output/* | FileCheck %s --match-full-lines
1919
// CHECK: var relevant_lines = {"1": {"3": 1, "4": 1, "5": 1, "6": 1}};

clang/test/Analysis/inlining/temp-dtors-path-notes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_analyze_cc1 -analyze -analyzer-checker core -analyzer-config cfg-temporary-dtors=true,c++-temp-dtor-inlining=true -analyzer-output=text -verify %s
1+
// RUN: %clang_analyze_cc1 -analyzer-checker core -analyzer-config cfg-temporary-dtors=true,c++-temp-dtor-inlining=true -analyzer-output=text -verify %s
22

33
namespace test_simple_temporary {
44
class C {

clang/test/Analysis/new-aligned.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//RUN: %clang_analyze_cc1 -std=c++17 -analyze -analyzer-checker=core -verify %s
1+
//RUN: %clang_analyze_cc1 -std=c++17 -analyzer-checker=core -verify %s
22

33
// expected-no-diagnostics
44

clang/test/Analysis/osobject-retain-release.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_analyze_cc1 -std=c++14 -fblocks -analyze -analyzer-output=text\
1+
// RUN: %clang_analyze_cc1 -std=c++14 -fblocks -analyzer-output=text\
22
// RUN: -analyzer-checker=core,osx,debug.ExprInspection -verify %s
33

44
#include "os_object_base.h"

clang/test/Analysis/ptr-cmp-const-trunc.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//RUN: %clang_analyze_cc1 -triple amdgcn-unknown-unknown -analyze -analyzer-checker=core -verify %s
1+
//RUN: %clang_analyze_cc1 -triple amdgcn-unknown-unknown -analyzer-checker=core -verify %s
22
// expected-no-diagnostics
33

44
#include <stdint.h>

clang/test/Analysis/region_store_overflow.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core -verify %s
1+
// RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s
22

33
int **h;
44
int overflow_in_memregion(long j) {

clang/test/Analysis/solver-sym-simplification-bool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core \
1+
// RUN: %clang_analyze_cc1 -analyzer-checker=core \
22
// RUN: -analyzer-checker=debug.ExprInspection -verify %s
33

44
void clang_analyzer_dump(bool);

clang/test/Analysis/solver-sym-simplification-ptr-bool.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_analyze_cc1 -triple amdgcn-unknown-unknown -analyze -analyzer-checker=core %s
1+
// RUN: %clang_analyze_cc1 -triple amdgcn-unknown-unknown -analyzer-checker=core %s
22

33
// expected-no-diagnostics
44

clang/test/Analysis/transparent_union_bug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_analyze_cc1 -analyze -triple x86_64-apple-darwin10 \
1+
// RUN: %clang_analyze_cc1 -triple x86_64-apple-darwin10 \
22
// RUN: -analyzer-checker=core,debug.ExprInspection -verify %s
33

44
void clang_analyzer_warnIfReached(void);

clang/test/Analysis/trustnonnullchecker_test.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Temporarily disabling the test, it failes the "system is over-constrained" (part of expensive checks)
22
// assertion in *non* optimized builds.
33
// REQUIRES: rdar44992170
4-
// RUN: %clang_analyze_cc1 -fblocks -analyze -analyzer-checker=core,nullability,apiModeling,debug.ExprInspection -verify %s
4+
// RUN: %clang_analyze_cc1 -fblocks -analyzer-checker=core,nullability,apiModeling,debug.ExprInspection -verify %s
55

66
#include "Inputs/system-header-simulator-for-nullability.h"
77

clang/test/Analysis/trustnonnullchecker_test.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_analyze_cc1 -fblocks -analyze -analyzer-checker=core,nullability,apiModeling -verify %s
1+
// RUN: %clang_analyze_cc1 -fblocks -analyzer-checker=core,nullability,apiModeling -verify %s
22

33
#include "Inputs/system-header-simulator-for-nullability-cxx.h"
44

clang/test/Analysis/undef-call.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: rm -rf %T/ctudir
22
// RUN: mkdir %T/ctudir
3-
// RUN: %clang_cc1 -fsyntax-only -analyze -analyzer-checker=debug.ExprInspection -analyzer-config experimental-enable-naive-ctu-analysis=true -analyzer-config ctu-dir=%T/ctudir -verify %s
3+
// RUN: %clang_cc1 -analyze -analyzer-checker=debug.ExprInspection -analyzer-config experimental-enable-naive-ctu-analysis=true -analyzer-config ctu-dir=%T/ctudir -verify %s
44
// expected-no-diagnostics
55

66
struct S {

clang/test/OpenMP/amdgpu_exceptions.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77
* target region but emit a warning instead.
88
*/
99

10-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -emit-llvm -verify=with -Wopenmp-target-exception -analyze
11-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -emit-llvm -verify=with -Wopenmp-target-exception -analyze
12-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fexceptions %s -emit-llvm -verify=with -Wopenmp-target-exception -analyze
13-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device %s -emit-llvm -verify=with -Wopenmp-target-exception -analyze
10+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -verify=with -Wopenmp-target-exception -analyze
11+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -verify=with -Wopenmp-target-exception -analyze
12+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fexceptions %s -verify=with -Wopenmp-target-exception -analyze
13+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device %s -verify=with -Wopenmp-target-exception -analyze
1414

1515
/**
1616
* The following four lines test that no warning is emitted when providing
1717
* -Wno-openmp-target-exception no matter the combination of -fexceptions and
1818
* -fcxx-exceptions.
1919
*/
2020

21-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -emit-llvm -verify=without -Wno-openmp-target-exception -analyze
22-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions %s -emit-llvm -verify=without -Wno-openmp-target-exception -analyze
23-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fexceptions %s -emit-llvm -verify=without -Wno-openmp-target-exception -analyze
24-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device %s -emit-llvm -verify=without -Wno-openmp-target-exception -analyze
21+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -verify=without -Wno-openmp-target-exception -analyze
22+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions %s -verify=without -Wno-openmp-target-exception -analyze
23+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fexceptions %s -verify=without -Wno-openmp-target-exception -analyze
24+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device %s -verify=without -Wno-openmp-target-exception -analyze
2525

2626
/**
2727
* Finally we should test that we only ignore exceptions in the OpenMP

clang/test/OpenMP/amdgpu_throw.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77
* target region but emit a warning instead.
88
*/
99

10-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -emit-llvm -verify=with -Wopenmp-target-exception -analyze
11-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -emit-llvm -verify=with -Wopenmp-target-exception -analyze
12-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fexceptions %s -emit-llvm -verify=with -Wopenmp-target-exception -analyze
13-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device %s -emit-llvm -verify=with -Wopenmp-target-exception -analyze
10+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -verify=with -Wopenmp-target-exception -analyze
11+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -verify=with -Wopenmp-target-exception -analyze
12+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fexceptions %s -verify=with -Wopenmp-target-exception -analyze
13+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device %s -verify=with -Wopenmp-target-exception -analyze
1414

1515
/**
1616
* The following four lines test that no warning is emitted when providing
1717
* -Wno-openmp-target-exception no matter the combination of -fexceptions and
1818
* -fcxx-exceptions.
1919
*/
2020

21-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -emit-llvm -verify=without -Wno-openmp-target-exception -analyze
22-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions %s -emit-llvm -verify=without -Wno-openmp-target-exception -analyze
23-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fexceptions %s -emit-llvm -verify=without -Wno-openmp-target-exception -analyze
24-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device %s -emit-llvm -verify=without -Wno-openmp-target-exception -analyze
21+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -verify=without -Wno-openmp-target-exception -analyze
22+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions %s -verify=without -Wno-openmp-target-exception -analyze
23+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fexceptions %s -verify=without -Wno-openmp-target-exception -analyze
24+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device %s -verify=without -Wno-openmp-target-exception -analyze
2525

2626
/**
2727
* Finally we should test that we only ignore exceptions in the OpenMP

clang/test/OpenMP/amdgpu_try_catch.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77
* target region but emit a warning instead.
88
*/
99

10-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -emit-llvm -verify=with -Wopenmp-target-exception -analyze
11-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -emit-llvm -verify=with -Wopenmp-target-exception -analyze
12-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fexceptions %s -emit-llvm -verify=with -Wopenmp-target-exception -analyze
13-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device %s -emit-llvm -verify=with -Wopenmp-target-exception -analyze
10+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -verify=with -Wopenmp-target-exception -analyze
11+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -verify=with -Wopenmp-target-exception -analyze
12+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fexceptions %s -verify=with -Wopenmp-target-exception -analyze
13+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device %s -verify=with -Wopenmp-target-exception -analyze
1414

1515
/**
1616
* The following four lines test that no warning is emitted when providing
1717
* -Wno-openmp-target-exception no matter the combination of -fexceptions and
1818
* -fcxx-exceptions.
1919
*/
2020

21-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -emit-llvm -verify=without -Wno-openmp-target-exception -analyze
22-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions %s -emit-llvm -verify=without -Wno-openmp-target-exception -analyze
23-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fexceptions %s -emit-llvm -verify=without -Wno-openmp-target-exception -analyze
24-
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device %s -emit-llvm -verify=without -Wno-openmp-target-exception -analyze
21+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -verify=without -Wno-openmp-target-exception -analyze
22+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fcxx-exceptions %s -verify=without -Wno-openmp-target-exception -analyze
23+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -fexceptions %s -verify=without -Wno-openmp-target-exception -analyze
24+
// RUN: %clang_cc1 -fopenmp -triple amdgcn-amd-amdhsa -fopenmp-is-target-device %s -verify=without -Wno-openmp-target-exception -analyze
2525

2626
/**
2727
* Finally we should test that we only ignore exceptions in the OpenMP

0 commit comments

Comments
 (0)