trivial.c: Fix line endings.

* gcc.target/avr/trivial.c: Fix line endings. Make PROGMEM
	variables const.
	* gcc.target/avr/torture/trivial.c: Ditto.

From-SVN: r172417
This commit is contained in:
Georg-Johann Lay 2011-04-14 10:38:17 +00:00 committed by Georg-Johann Lay
parent 43ea65025f
commit 023009d4d1
3 changed files with 36 additions and 28 deletions

View File

@ -1,3 +1,9 @@
2011-04-14 Georg-Johann Lay <avr@gjlay.de>
* gcc.target/avr/trivial.c: Fix line endings. Make PROGMEM
variables const.
* gcc.target/avr/torture/trivial.c: Ditto.
2011-04-13 Jason Merrill <jason@redhat.com>
* g++.dg/template/operator11.C: New.

View File

@ -1,14 +1,15 @@
/* { dg-do run } */
#include <stdio.h>
#define __ATTR_PROGMEM__ __attribute__((__progmem__))
#define PROGMEM __ATTR_PROGMEM__
char PROGMEM a1 = 0x12;
int PROGMEM a2 = 0x2345;
long PROGMEM a3 = 0x12345678;
int main(void)
{
printf("Hello World\n");
return 0;
}
/* { dg-do run } */
#include <stdio.h>
#define PROGMEM __attribute__((__progmem__))
const char PROGMEM a1 = 0x12;
const int PROGMEM a2 = 0x2345;
const long PROGMEM a3 = 0x12345678;
int main(void)
{
printf ("Hello World\n");
return 0;
}

View File

@ -1,14 +1,15 @@
/* { dg-do run } */
#include <stdio.h>
#define __ATTR_PROGMEM__ __attribute__((__progmem__))
#define PROGMEM __ATTR_PROGMEM__
char PROGMEM a1 = 0x12;
int PROGMEM a2 = 0x2345;
long PROGMEM a3 = 0x12345678;
int main(void)
{
printf("Hello World\n");
return 0;
}
/* { dg-do run } */
#include <stdio.h>
#define PROGMEM __attribute__((__progmem__))
const char PROGMEM a1 = 0x12;
const int PROGMEM a2 = 0x2345;
const long PROGMEM a3 = 0x12345678;
int main(void)
{
printf ("Hello World\n");
return 0;
}