view clang/test/Analysis/complex-init-list.cpp @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
line wrap: on
line source

// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output=text -verify %s
// expected-no-diagnostics

// Do not crash on initialization to complex numbers.
void init_complex() {
  _Complex float valid1 = { 0.0f, 0.0f };
}