brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 5d8a77d Raw
36 lines · c
1// RUN: %clang_cc1 -DDIGRAPHS=1 -fsyntax-only -verify -ffreestanding %s2// RUN: %clang_cc1 -DDIGRAPHS=1 -fno-digraphs -fdigraphs -fsyntax-only -verify -ffreestanding %s3// RUN: %clang_cc1 -fno-digraphs -fsyntax-only -verify -ffreestanding %s4// RUN: %clang_cc1 -fdigraphs -fno-digraphs -fsyntax-only -verify -ffreestanding %s5// RUN: %clang_cc1 -std=c89 -DDIGRAPHS=1 -fdigraphs -fsyntax-only -verify -ffreestanding %s6// RUN: %clang_cc1 -std=c89 -fno-digraphs -fsyntax-only -verify -ffreestanding %s7 8#if DIGRAPHS9 10// expected-no-diagnostics11%:include <stdint.h>12 13    %:ifndef BUFSIZE14     %:define BUFSIZE  51215    %:endif16 17    void copy(char d<::>, const char s<::>, int len)18    <%19        while (len-- >= 0)20        <%21            d<:len:> = s<:len:>;22        %>23    %>24#else25 26// expected-error@+1 {{expected identifier or '('}}27%:include <stdint.h>28;29// expected-error@+1 {{expected ')'}} expected-note@+1{{to match this '('}}30void copy(char d<::>);31 32// expected-error@+1 {{expected function body}}33void copy() <% %>34 35#endif36