| 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 | |
| 7 | template<template<typename> +> void func(); |
| 8 | |
| 9 | struct { |
| 10 | void i() { |
| 11 | (void)&i; |
| 12 | } |
| 13 | } x; |
| 14 | |
| 15 | namespace dotPointerDestructor { |
| 16 | |
| 17 | struct Bar { |
| 18 | ~Bar() = delete; |
| 19 | }; |
| 20 | |
| 21 | void bar(Bar *o) { |
| 22 | o.~Bar(); // no fixit |
| 23 | } |
| 24 | |
| 25 | } |
| 26 |