
It's useful to have some significant build options visible in the version when investigating problems with a specific compiler artifact. This makes it easy to see if assertions, expensive checks, sanitizers, etc. are enabled when checking a compiler version. Example config line output: Build configuration: +unoptimized, +assertions, +asan, +ubsan
7 lines
221 B
Plaintext
7 lines
221 B
Plaintext
# REQUIRES: asserts
|
|
# RUN: %clang --version 2>&1 | FileCheck %s
|
|
|
|
# CHECK: clang version
|
|
# When assertions are enabled, we should have a build configuration line that reflects that
|
|
# CHECK: Build config: {{.*}}+assertions
|