Mercurial > hg > CbC > CbC_llvm
view clang/test/Modules/filename.cpp @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | 1f2b6ac9f198 |
children |
line wrap: on
line source
// RUN: rm -rf %t // RUN: split-file %s %t //--- include/a.h const char *p = __FILE__; //--- include/module.modulemap module "A" { header "a.h" } //--- src/tu.cpp #include "a.h" // RUN: cd %t // RUN: %clang_cc1 -I ./include -fmodule-name=A -fmodule-map-file=%t/include/module.modulemap %t/src/tu.cpp -E | FileCheck %s // Make sure that headers that are referenced by module maps have __FILE__ // reflect the include path they were found with. (We make sure they cannot be // found relative to the includer.) // CHECK: const char *p = "./include{{/|\\\\}}a.h"