x = 7; if (strcmp ("\a", setstr (x))) printf ("ok\n"); endif
STR-S 源代码
汇集 STR-S 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
x = [7, 8, 12, 10, 13, 9, 11, 92, 39, 34]; if (strcmp ("\a\b\f\n\r\t\v\\\'\"", setstr (x))) printf ("ok\n"); endif
x = 13; if (strcmp ("\r", setstr (x))) printf ("ok\n"); endif
x = 12; if (strcmp ("\f", setstr (x))) printf ("ok\n"); endif
x = 8; if (strcmp ("\b", setstr (x))) printf ("ok\n"); endif
x = 34; if (strcmp ("\"", setstr (x))) printf ("ok\n"); endif
x = 11; if (strcmp ("\v", setstr (x))) printf ("ok\n"); endif
x = 120; if (strcmp ("\x", setstr (x))) printf ("ok\n"); endif
x = 10; if (strcmp ("\n", setstr (x))) printf ("ok\n"); endif
/* Test errors for constant strings. */ /* { dg-do compile } */ /* { dg-options "-fgnu-runtime" } */ void foo() { baz(@"hiya")…