diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-02-05 18:39:15 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-02-05 18:39:15 +0000 |
| commit | d87c9e7da2e87f224c426832f08897269c2e5636 (patch) | |
| tree | 9492632723d36c1c80f3daca3974f362eea84a7a /test/SemaOpenCL/printf-format-strings.cl | |
| parent | 292698a8537d1e51bbcd339f8a19b2b7d7f1e1f6 (diff) | |
Notes
Diffstat (limited to 'test/SemaOpenCL/printf-format-strings.cl')
| -rw-r--r-- | test/SemaOpenCL/printf-format-strings.cl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaOpenCL/printf-format-strings.cl b/test/SemaOpenCL/printf-format-strings.cl index 079a83495685..212e1f8981cb 100644 --- a/test/SemaOpenCL/printf-format-strings.cl +++ b/test/SemaOpenCL/printf-format-strings.cl @@ -13,10 +13,10 @@ int printf(__constant const char* st, ...) __attribute__((format(printf, 1, 2))) kernel void format_v4f32(float4 arg) { #ifdef cl_khr_fp64 - printf("%v4f\n", arg); + printf("%v4f\n", arg); // expected-warning{{format specifies type 'double __attribute__((ext_vector_type(4)))' but the argument has type 'float4' (vector of 4 'float' values)}} // Precision modifier - printf("%.2v4f\n", arg); + printf("%.2v4f\n", arg); // expected-warning{{format specifies type 'double __attribute__((ext_vector_type(4)))' but the argument has type 'float4' (vector of 4 'float' values)}} #else // FIXME: These should not warn, and the type should be expected to be float. printf("%v4f\n", arg); // expected-warning {{double __attribute__((ext_vector_type(4)))' but the argument has type 'float4' (vector of 4 'float' values)}} |
