aboutsummaryrefslogtreecommitdiffstats
path: root/libacc/tests
diff options
context:
space:
mode:
authorJack Palevich <jackpal@google.com>2009-08-18 17:44:12 -0700
committerJack Palevich <jackpal@google.com>2009-08-18 17:44:12 -0700
commit0b1827a5b23a78da5ed88c4158c73b822b92f7a9 (patch)
treefd21ff9abbf10395b7ed60c7b11ead94cefad441 /libacc/tests
parent0b2de0de64666854c3621ddd69f580898776708e (diff)
downloadsystem_core-0b1827a5b23a78da5ed88c4158c73b822b92f7a9.tar.gz
system_core-0b1827a5b23a78da5ed88c4158c73b822b92f7a9.tar.bz2
system_core-0b1827a5b23a78da5ed88c4158c73b822b92f7a9.zip
Allow '//'-style comments in #defines.
Diffstat (limited to 'libacc/tests')
-rw-r--r--libacc/tests/data/defines.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libacc/tests/data/defines.c b/libacc/tests/data/defines.c
index 2a6fdf71..840917d1 100644
--- a/libacc/tests/data/defines.c
+++ b/libacc/tests/data/defines.c
@@ -1,7 +1,8 @@
// Simple tests of the C preprocessor
-#define A (1 + 2)
+#define A (4 / 2)
+#define B 1 // This is a comment. With a / in it.
int main() {
- return A;
+ return A + B;
}