clang/test/Modules/cxx20.cpp
raw| 1 | // RUN: rm -rf %t |
| 2 | // RUN: %clang_cc1 -x c++ -std=c++20 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs/cxx20 %s -verify -fno-modules-error-recovery |
| 3 | |
| 4 | // expected-no-diagnostics |
| 5 | |
| 6 | #include "decls.h" |
| 7 | |
| 8 | namespace StructuredBinding { |
| 9 | struct R { int x, y; }; |
| 10 | static auto [a, b] = R(); |
| 11 | } |