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