summaryrefslogtreecommitdiffstats
path: root/test/Parser/encode.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/encode.m')
-rw-r--r--test/Parser/encode.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Parser/encode.m b/test/Parser/encode.m
new file mode 100644
index 0000000..1e088a0
--- /dev/null
+++ b/test/Parser/encode.m
@@ -0,0 +1,8 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+
+int main(void) {
+ const char ch = @encode(char *)[2];
+ char c = @encode(char *)[2] + 4;
+ return c;
+}
+
OpenPOWER on IntegriCloud