You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clang/test/SemaSYCL/intel-fpga-mem-builtin.cpp
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ struct State {
12
12
};
13
13
14
14
structinner {
15
-
void (*fp)(); // expected-note {{Field with illegal type declared here}}
15
+
void (*fp)(); // expected-note {{field with illegal type declared here}}
16
16
};
17
17
18
18
structouter {
@@ -37,22 +37,22 @@ void foo(float *A, int *B, State *C) {
37
37
z = __builtin_intel_fpga_mem(C, i, 0);
38
38
// expected-error@-1{{argument to '__builtin_intel_fpga_mem' must be a constant integer}}
39
39
z = __builtin_intel_fpga_mem(U, 0, 0);
40
-
// expected-error@-1{{illegal pointer argument of type 'void *' to __builtin_intel_fpga_mem. Only pointers to a first class lvalue or to an rvalue are allowed}}
40
+
// expected-error@-1{{illegal pointer argument of type 'void *' to __builtin_intel_fpga_mem; only pointers to a first class lvalue or to an rvalue are allowed}}
41
41
42
42
int intArr[10] = {0};
43
43
int *k1 = __builtin_intel_fpga_mem(intArr, 0, 0);
44
44
// expected-error@-1{{builtin parameter must be a pointer}}
45
45
46
46
int **k2 = __builtin_intel_fpga_mem(&intArr, 0, 0);
47
-
// expected-error@-1{{illegal pointer argument of type 'int (*)[10]' to __builtin_intel_fpga_mem. Only pointers to a first class lvalue or to an rvalue are allowed}}
47
+
// expected-error@-1{{illegal pointer argument of type 'int (*)[10]' to __builtin_intel_fpga_mem; only pointers to a first class lvalue or to an rvalue are allowed}}
// expected-error@-1{{illegal pointer argument of type 'void (*)()' to __builtin_intel_fpga_mem. Only pointers to a first class lvalue or to an rvalue are allowed}}
51
+
// expected-error@-1{{illegal pointer argument of type 'void (*)()' to __builtin_intel_fpga_mem; only pointers to a first class lvalue or to an rvalue are allowed}}
// expected-error@-1{{illegal field in type pointed to by pointer argument to __builtin_intel_fpga_mem. Only pointers to a first class lvalue or to an rvalue are allowed}}
55
+
// expected-error@-1{{illegal field in type pointed to by pointer argument to __builtin_intel_fpga_mem; only pointers to a first class lvalue or to an rvalue are allowed}}
0 commit comments