aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Parser/encode.m
blob: 056cee1ac06b24a343e0d9aabfbc079b9b51cd7b (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics

int main(void) {
  const char ch = @encode(char *)[0];
  char c = @encode(char *)[0] + 4;
  return c;
}