annotate clang/test/Modules/macro-masking.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 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: rm -rf %t
anatofuz
parents:
diff changeset
2 // RUN: %clang_cc1 -fsyntax-only -fmodules -fimplicit-module-maps %s -fmodules-cache-path=%t -verify -I%S/Inputs/macro-masking
anatofuz
parents:
diff changeset
3 // RxN: %clang_cc1 -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-local-submodule-visibility %s -fmodules-cache-path=%t -verify -I%S/Inputs/macro-masking -DLOCAL_VISIBILITY
anatofuz
parents:
diff changeset
4 // expected-no-diagnostics
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 #include "a.h"
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 #ifdef LOCAL_VISIBILITY
anatofuz
parents:
diff changeset
9 # ifndef MACRO
anatofuz
parents:
diff changeset
10 # error should still be defined, undef does not override define
anatofuz
parents:
diff changeset
11 # endif
anatofuz
parents:
diff changeset
12 #else
anatofuz
parents:
diff changeset
13 # ifdef MACRO
anatofuz
parents:
diff changeset
14 # error should have been undefined!
anatofuz
parents:
diff changeset
15 # endif
anatofuz
parents:
diff changeset
16 #endif