Clang Project

clang_source_code/test/FixIt/no-fixit.cpp
1// RUN: not %clang_cc1 -fdiagnostics-parseable-fixits -x c++ -std=c++11 %s 2>&1 | FileCheck %s
2
3// test that the diagnostics produced by this code do not include fixit hints
4
5// CHECK-NOT: fix-it:
6
7template<template<typename> +> void func();
8
9struct {
10  void i() {
11    (void)&i;
12  }
13} x;
14
15namespace dotPointerDestructor {
16
17struct Bar {
18  ~Bar() = delete;
19};
20
21void bar(Bar *o) {
22  o.~Bar(); // no fixit
23}
24
25}
26