summaryrefslogtreecommitdiff
path: root/tests/cl/program/build
diff options
context:
space:
mode:
authorAaron Watry <awatry@gmail.com>2012-10-10 18:44:04 -0500
committerTom Stellard <thomas.stellard@amd.com>2012-10-15 20:53:38 +0000
commite1f3ac898ed469b1f2224237b7e221d745517f92 (patch)
tree80b53415092d8e2d55c889d2cc4cab3edc3594a7 /tests/cl/program/build
parentdbeec5605eddc42f774711efc0710cfd01dd0712 (diff)
cl: Add build test for mixed macro definitions.
Include definitions for both specified and unspecified values. Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Diffstat (limited to 'tests/cl/program/build')
-rw-r--r--tests/cl/program/build/mixed-macro-definitions.cl12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/cl/program/build/mixed-macro-definitions.cl b/tests/cl/program/build/mixed-macro-definitions.cl
new file mode 100644
index 000000000..274f813ab
--- /dev/null
+++ b/tests/cl/program/build/mixed-macro-definitions.cl
@@ -0,0 +1,12 @@
+/*!
+[config]
+name: Mixed Macro Definitions
+clc_version_min: 10
+build_options: -D BUILD_OPT1 -D BUILD_OPT2=2
+!*/
+
+
+
+kernel void dummy_kernel(){
+ int var1 = BUILD_OPT1; int var2 = BUILD_OPT2;
+} \ No newline at end of file