diff options
author | Aaron Watry <awatry@gmail.com> | 2012-10-10 18:44:10 -0500 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2012-10-15 20:53:39 +0000 |
commit | 44969f844731ae45685f72decd6106a0e33223bd (patch) | |
tree | 6d304eb31fc06c6c65925c0428c2ffbd58fab0d9 /tests/cl/program | |
parent | 5dc9cd8c0df4973c72a3ed70f8dcb3791b7e03c6 (diff) |
cl: Add build test for -Werror
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Diffstat (limited to 'tests/cl/program')
-rw-r--r-- | tests/cl/program/build/fail/warnings-as-errors.cl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/cl/program/build/fail/warnings-as-errors.cl b/tests/cl/program/build/fail/warnings-as-errors.cl new file mode 100644 index 000000000..cd4462f57 --- /dev/null +++ b/tests/cl/program/build/fail/warnings-as-errors.cl @@ -0,0 +1,13 @@ +/*! +[config] +name: Treat warnings as errors +clc_version_min: 10 +build_options: -Werror +expect_build_fail: true +!*/ + +void dummy_function() { int i = 0; } + +kernel void dummy_kernel() { + dummy_function(); +}
\ No newline at end of file |