[PATCH] D64820: [Sema] Avoids an assertion failure when an invalid conversion declaration is used

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 29 13:31:42 PDT 2019


rsmith added inline comments.


================
Comment at: clang/test/Sema/conversion_function_to_function.cpp:1
+// RUN: not %clang_cc1 -fsyntax-only -std=c++14 %s 2>&1 | FileCheck %s
+
----------------
Use `%clang_cc1 -verify` instead of `not %clang_cc1 | FileCheck`


================
Comment at: clang/test/Sema/conversion_function_to_function.cpp:9
+// CHECK: error: conversion function cannot convert to a function type
+// CHECK-NOT: Assertion{{.*}}failed
----------------
(You don't need this final CHECK line: `not %clang_cc1` still fails if clang crashes.)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64820/new/

https://reviews.llvm.org/D64820





More information about the cfe-commits mailing list