typedef-redef.c revision 99cb9976efe84f44b3b1957c4fe042dae366b989
1// RUN: clang < %s -fsyntax-only -verify
2
3// size_t coming from a system header.
4#include <stddef.h>
5typedef __SIZE_TYPE__ size_t;
6
7
8
9typedef const int x; // expected-error {{previous definition is here}}
10extern x a;
11typedef int x;  // expected-error {{typedef redefinition with different types}}
12extern x a;
13
14