aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Modules/cxx20.cpp
blob: e85bc9ad8a8fc0062d1e71be1148b67fea44bf64 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: rm -rf %t
// 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

// expected-no-diagnostics

#include "decls.h"

namespace StructuredBinding {
  struct R { int x, y; };
  static auto [a, b] = R();
}