[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaCXX / predefined-expr-msvc.cpp
bloba2560f2d2d015b150f9feb8272c7886b7863f91f
1 // RUN: %clang_cc1 %s -std=c++17 -fsyntax-only -verify
2 // RUN: %clang_cc1 %s -std=c++17 -fsyntax-only -verify -fms-extensions
4 // expected-no-diagnostics
6 struct StringRef {
7 StringRef(const char *);
8 };
9 template <typename T>
10 StringRef getTypeName() {
11 StringRef s = __func__;