summaryrefslogtreecommitdiffstats
path: root/test/Parser/encode.m
blob: 15e9fe9828be1252c7c35caa01449bb01d7acdf9 (plain)
1
2
3
4
5
6
7
8
// RUN: clang -cc1 -fsyntax-only -verify %s

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