1
- // XFAIL: *
2
1
// RUN: %clang_cc1 -triple spir64-unknown-unknown -fms-extensions \
3
2
// RUN: -aux-triple x86_64-unknown-linux-gnu -fsycl-is-device \
4
3
// RUN: -fsyntax-only -Wno-sycl-2017-compat -DWARNCHECK %s -o /dev/null 2>&1 | FileCheck %s
5
4
// check random triple aux-triple with sycl-device
6
5
7
6
// RUN: %clang_cc1 -triple spir64-unknown-windows -Wno-sycl-2017-compat -fsyntax-only \
8
- // RUN: -fms-extensions -DWARNCHECK %s -o /dev/null 2>&1 | FileCheck %s
7
+ // RUN: -fms-extensions -DWARNCHECK %s -o /dev/null 2>&1 | FileCheck --check-prefixes CHECKALL %s
9
8
// check without -aux-triple but sycl-device
10
9
11
10
// RUN: %clang_cc1 -triple spir64-unknown-windows \
@@ -43,10 +42,9 @@ int __declspec(dllexport) foo(int a) {
43
42
}
44
43
// expected-note@+1 {{'bar' declared here}}
45
44
SYCL_EXTERNAL int __declspec (dllimport) bar();
46
- // expected-note@+2 {{previous attribute is here}}
47
45
// expected-note@+1 {{previous declaration is here}}
48
- int __declspec (dllimport) foobar();
49
- int foobar () // expected-warning {{'foobar' redeclared without 'dllimport' attribute: previous 'dllimport' ignored }}
46
+ int __declspec (dllimport) foobar(); // expected-note {{'foobar' declared here}}
47
+ int foobar () // expected-warning {{'foobar' redeclared without 'dllimport' attribute: 'dllexport' attribute added }}
50
48
{
51
49
return 10 ;
52
50
}
@@ -62,7 +60,7 @@ int main() {
62
60
kernel_single_task<class fake_kernel >([]() {
63
61
foo (10 );// expected-no-error
64
62
bar (); // expected-error {{SYCL kernel cannot call a dllimport function}}
65
- foobar (); // expected-no- error
63
+ foobar (); // expected-error {{SYCL kernel cannot call a dllimport function}}
66
64
});
67
65
bar (); // expected-no-error
68
66
return 0 ;
0 commit comments