Clang Project

clang_source_code/test/Modules/merge-name-for-linkage.cpp
1// RUN: rm -rf %t
2// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/merge-name-for-linkage -verify %s
3// expected-no-diagnostics
4typedef union {} pthread_mutex_t;
5typedef pthread_mutex_t pthread_mutex_t;
6#include "a.h"
7pthread_mutex_t x;
8#include "b.h"
9pthread_mutex_t y;
10merged_after_definition z;
11