16 lines · cpp
1// RUN: rm -rf %t2// 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=13// 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=24 5// expected-no-diagnostics6#if ORDER == 17#include "c.h"8#include "b.h"9#else10#include "b.h"11#include "c.h"12#endif13 14static_assert(PtrTemp1 == &LETemp, "");15static_assert(PtrTemp1 == PtrTemp2, "");16