mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 17:46:41 +00:00

Check whether parsing of the argument failed before attempting to build the expression. Fixes #80474.
6 lines
129 B
C++
6 lines
129 B
C++
// RUN: %clang_cc1 -verify -std=c++14 %s
|
|
|
|
auto f() {
|
|
return __array_extent(int, ); // expected-error {{expected expression}}
|
|
}
|