mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 11:35:51 -04:00

another declaration, ensure we actually serialize / deserialize that declaration. Before this patch, if another copy of the typedef were merged with the parsed version, we would emit type information referring to the merged version and consequently emit nothing about the parsed anonymous struct. This resulted in us losing information, particularly the visible merged module set for the parsed definition. Force that information to be emitted and to be loaded when the typedef is used. llvm-svn: 293219
11 lines
337 B
C++
11 lines
337 B
C++
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/merge-name-for-linkage -verify %s
|
|
// expected-no-diagnostics
|
|
typedef union {} pthread_mutex_t;
|
|
typedef pthread_mutex_t pthread_mutex_t;
|
|
#include "a.h"
|
|
pthread_mutex_t x;
|
|
#include "b.h"
|
|
pthread_mutex_t y;
|
|
merged_after_definition z;
|