mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 00:26:06 +00:00

Fix an assertion that is hit when a redeclaration with differing types only differs in the unaligned type-qualifier. Differential Revision: https://reviews.llvm.org/D29986 llvm-svn: 296099
5 lines
239 B
C
5 lines
239 B
C
// RUN: %clang_cc1 %s -verify -fsyntax-only -fms-extensions
|
|
|
|
int __unaligned * p1; // expected-note {{previous definition is here}}
|
|
int * p1; // expected-error {{redefinition of 'p1' with a different type: 'int *' vs '__unaligned int *'}}
|