]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Analysis/structured_bindings.cc
Vendor import of clang trunk r338150:
[FreeBSD/FreeBSD.git] / test / Analysis / structured_bindings.cc
1 // RUN: %clang_analyze_cc1 -std=c++17 -analyzer-checker=core -verify %s
2
3 // expected-no-diagnostics
4 struct s { int a; };
5 int foo() {
6     auto[a] = s{1}; // FIXME: proper modelling
7     if (a) {
8     }
9 }
10