Skip to content

Instantly share code, notes, and snippets.

// RUN: split-file %s %t
// DEFINE: %{file} =
// DEFINE: %{run} = \
// DEFINE: %clang_cc1 -std=c++98 %t/%{file} -verify -fexceptions -fcxx-exceptions -pedantic-errors && \
// DEFINE: %clang_cc1 -std=c++11 %t/%{file} -verify -fexceptions -fcxx-exceptions -pedantic-errors && \
// DEFINE: %clang_cc1 -std=c++14 %t/%{file} -verify -fexceptions -fcxx-exceptions -pedantic-errors && \
// DEFINE: %clang_cc1 -std=c++17 %t/%{file} -verify -fexceptions -fcxx-exceptions -pedantic-errors && \
// DEFINE: %clang_cc1 -std=c++20 %t/%{file} -verify -fexceptions -fcxx-exceptions -pedantic-errors && \
// DEFINE: %clang_cc1 -std=c++23 %t/%{file} -verify -fexceptions -fcxx-exceptions -pedantic-errors