You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
538 B
16 lines
538 B
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -x c++ -I%S/Inputs/merge-lifetime-extended-temporary -verify -std=c++11 %s -DORDER=1
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -x c++ -I%S/Inputs/merge-lifetime-extended-temporary -verify -std=c++11 %s -DORDER=2
|
|
|
|
// expected-no-diagnostics
|
|
#if ORDER == 1
|
|
#include "c.h"
|
|
#include "b.h"
|
|
#else
|
|
#include "b.h"
|
|
#include "c.h"
|
|
#endif
|
|
|
|
static_assert(PtrTemp1 == &LETemp, "");
|
|
static_assert(PtrTemp1 == PtrTemp2, "");
|