aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2013-05-17 16:14:58 -0700
committerStephen Hines <srhines@google.com>2013-05-17 16:14:58 -0700
commite006c14e3a1b79c3fbabc6ea8b12ce5f7be8e5a6 (patch)
treea66c07f3c16325ee3e225f2a616f368895ecca6f /tests
parentf64e76657a98f66c0f3f26014c0a51f55204dc1c (diff)
downloadandroid_frameworks_compile_slang-e006c14e3a1b79c3fbabc6ea8b12ce5f7be8e5a6.tar.gz
android_frameworks_compile_slang-e006c14e3a1b79c3fbabc6ea8b12ce5f7be8e5a6.tar.bz2
android_frameworks_compile_slang-e006c14e3a1b79c3fbabc6ea8b12ce5f7be8e5a6.zip
Support -O0 as well as -O 0 for option passing.
Bug: 9022067 This is not the same as standard Clang, and I would prefer to deprecate the old way (with space), but the SDK build system will need some time to adapt. Change-Id: I872afe8db3db6745b5507176007c012d0c4da117
Diffstat (limited to 'tests')
-rw-r--r--tests/P_debug/debug.rs5
-rw-r--r--tests/P_debug/stderr.txt.expect0
-rw-r--r--tests/P_debug/stdout.txt.expect1
3 files changed, 6 insertions, 0 deletions
diff --git a/tests/P_debug/debug.rs b/tests/P_debug/debug.rs
new file mode 100644
index 0000000..69ede2a
--- /dev/null
+++ b/tests/P_debug/debug.rs
@@ -0,0 +1,5 @@
+// -O0 -g
+#pragma version(1)
+#pragma rs java_package_name(android.renderscript.cts)
+
+int i;
diff --git a/tests/P_debug/stderr.txt.expect b/tests/P_debug/stderr.txt.expect
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/P_debug/stderr.txt.expect
diff --git a/tests/P_debug/stdout.txt.expect b/tests/P_debug/stdout.txt.expect
new file mode 100644
index 0000000..96a35cb
--- /dev/null
+++ b/tests/P_debug/stdout.txt.expect
@@ -0,0 +1 @@
+Generating ScriptC_debug.java ...