summaryrefslogtreecommitdiffstats
path: root/test/CXX/dcl.dcl/dcl.spec/dcl.typedef/p3.cpp
blob: 867b4f03d41ff4832833e610b1e3dc9d9a89f16f (plain)
1
2
3
4
5
6
7
8
// RUN: clang-cc -verify %s

typedef struct s { int x; } s;
typedef int I;
typedef int I2;
typedef I2 I; // expected-note {{previous definition is here}}

typedef char I; // expected-error {{typedef redefinition with different types}}