
These test cases are testing features not available when either targeting the s390x-ibm-zos target or use tools/features not available on the z/OS operating system. In a couple cases the lit test had a number of subtests with one or two that aren't supported on z/OS. Rather than mark the entire test as unsupported I split out the unsupported tests into a separate test case.
17 lines
630 B
C++
17 lines
630 B
C++
// RUN: %clang_cc1 -verify -std=c++2a -pedantic-errors %s
|
|
// RUN: cp %s %t
|
|
// RUN: %clang_cc1 -x c++ -std=c++2a -fixit %t
|
|
// RUN: %clang_cc1 -Wall -pedantic-errors -x c++ -std=c++2a %t
|
|
// RUN: cat %t | FileCheck %s
|
|
// UNSUPPORTED: target={{.*-zos.*}}
|
|
|
|
/* This is a test of the various code modification hints that only
|
|
apply in C++2a. */
|
|
|
|
namespace constinit_mismatch {
|
|
extern thread_local constinit int a; // expected-note {{declared constinit here}}
|
|
thread_local int a = 123; // expected-error {{'constinit' specifier missing on initializing declaration of 'a'}}
|
|
// CHECK: {{^}} constinit thread_local int a = 123;
|
|
}
|
|
|