[AArch64][GlobalISel] Add disjoint handling for add_and_or_is_add. (#123594)
[llvm-project.git] / clang / test / Modules / expose-static-inline-from-gmf-2.cppm
blobc89b613f5074b1a385fec8359dbb671a5a6233ec
1 // RUN: rm -rf %t
2 // RUN: mkdir -p %t
3 // RUN: split-file %s %t
4 //
5 // RUN: %clang -std=c++20 %t/a.cppm --precompile -o %t/a.pcm
6 // RUN: %clang -std=c++20 %t/test.cc -fprebuilt-module-path=%t -fsyntax-only -Xclang -verify
8 //--- a.h
9 template <typename G> static inline void func() {}
10 template <typename T = long> void a() { func<T>(); }
12 //--- a.cppm
13 module;
14 #include "a.h"
15 export module a;
16 export using ::a;
18 //--- test.cc
19 import a;
20 auto m = (a(), 0);
22 // expected-no-diagnostics