1// RUN: %clang_cc1 -fsyntax-only -I%S/Inputs %s 2 3// As long as none of this crashes, we don't care about comments in 4// preprocessor directives. 5 6#include "annotate-comments-preprocessor.h" /* Aaa. */ /* Bbb. */ 7#include "annotate-comments-preprocessor.h" /* Aaa. */ 8#include "annotate-comments-preprocessor.h" /** Aaa. */ 9#include "annotate-comments-preprocessor.h" /**< Aaa. */ 10#include "annotate-comments-preprocessor.h" // Aaa. 11#include "annotate-comments-preprocessor.h" /// Aaa. 12#include "annotate-comments-preprocessor.h" ///< Aaa. 13 14#define A0 0 15#define A1 1 /* Aaa. */ 16#define A2 1 /** Aaa. */ 17#define A3 1 /**< Aaa. */ 18#define A4 1 // Aaa. 19#define A5 1 /// Aaa. 20#define A6 1 ///< Aaa. 21 22int A[] = { A0, A1, A2, A3, A4, A5, A6 }; 23 24#if A0 /** Aaa. */ 25int f(int a1[A1], int a2[A2], int a3[A3], int a4[A4], int a5[A5], int a6[A6]); 26#endif /** Aaa. */ 27 28#if A1 /** Aaa. */ 29int g(int a1[A1], int a2[A2], int a3[A3], int a4[A4], int a5[A5], int a6[A6]); 30#endif /* Aaa. */ 31 32#pragma once /** Aaa. */ 33 34#define FOO \ 35 do { \ 36 /* Aaa. */ \ 37 /** Aaa. */ \ 38 /**< Aaa. */ \ 39 ; \ 40 } while(0) 41 42void h(void) { 43 FOO; 44} 45 46